How can I get the remaining estimate using Jquery
Achived using Java script.
jQuery("#tt_aggregate_values_remain").text() will do it - of course in the JIRA world, we'd prefer you to use AJS.$("#tt_aggregate_values_remain").text() to do this. It's actually very easy to work this kinfd of thing out with the right tools - if you're using Firefox then install Firebug and when you right click, you have an inspect element option which will then allow you to see what the element id is (always the preferred way to get something - if the element doesn't have an id then you need to craft a jQuery selector to find it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This would be the preferred way if you are already on an issues screen for sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out the JIRA REST API documentation - http://docs.atlassian.com/jira/REST/latest/#id2474348
Providing you can find out the JIRA issue you want to get the remaining estimate from (e.g. via the URL or other) then you could call this endpoint
/api/2.0.alpha1/issue/{issueKey}
This returns the issue in JSON and this part has the details you need
"timetracking": { "name": "timetracking", "type": "timetracking", "value": { "timeoriginalestimate": 10, "timeestimate": 3, "timespent": 6 } },
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.