Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there anyway to view the remaining estimate across the epic instead of only the Original estimate?

Ben Richman May 8, 2016

Would be great to see how much remaining time there was by using the remaining estimate field. If some issues have been worked on but then carried over across multiple sprints then the Original estimate does not help as it is only the remaining estimate which accurately reflects how much work is left to be done.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Eric Salonen
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.
May 10, 2016

Hi Ben,

You can add the following javascript into the JIRA annoucement banner:

<script type='text/javascript'>
AJS.$(document).ready(function() {
 
AJS.$('#ghx-issues-in-epic-table tr').each(function(){
    console.log('Found epic table');
    var row = this;
    var issueKey = AJS.$(this).attr("data-issuekey");
    AJS.$.getJSON(AJS.contextPath() + '/rest/api/latest/issue/' + issueKey, function(data){
        console.log('Got data for - ' + issueKey);
        var actions = AJS.$(row).find('td.issue_actions');
        var field = data.fields.customfield_11401;
        var value = '';
        if (field != null){
           value = field.value;
           if(value != null){
              console.log('Value - ' + value);
           }
        }
        AJS.$(actions).before('<td class="nav">' + value + '</td>');
        <!-- Remaining / Estimate -->
        var timing = '';
        if(timing != undefined){
           timing = timing = data.fields.timetracking.remainingEstimate.replace(' ','');
           var origEstimate = data.fields.timetracking.originalEstimate;
           if(origEstimate != undefined){
              timing = timing + '/' + origEstimate.replace(' ','');
           }
        }
        AJS.$(actions).before('<td class="nav">' + timing + '</td>');
    });
});
 
});
</script>

I am not sure if it works for JIRA7 yet but this works for me in JIRA 6.4.4

Hope this helps!
Eric

Ben Richman May 11, 2016

Will give it a go, thanks.

Eric Salonen
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.
May 11, 2016

I forgot to mention that the script also includes the possibility to add the value of a custom field. E.g my custom field was customfield_11401 so just replace that with the correct id of the custom field to display that information as well in the Epic, in the linked issues table.

TAGS
AUG Leaders

Atlassian Community Events