How can I get the remaining estimate using Jquery

Anoop Wilson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 19, 2011

How can I get the remaining estimate using Jquery

3 answers

1 accepted

0 votes
Answer accepted
Anoop Wilson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2014

Achived using Java script.

1 vote
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2011

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.

Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 29, 2011

This would be the preferred way if you are already on an issues screen for sure.

1 vote
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 29, 2011

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
            }
        },

Suggest an answer

Log in or Sign up to answer