How to find Total Remaining time for an issue and all its child issues?

Tayyab Bashir
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 24, 2017

Hi, 
JIRA Version: 7.2.6


How can I find the total time remaining for an issue and all its child issues? 

For e.g. If an issue (parent) has a Remaining Time of 5 days and its subtask (child) has remaining time of 2 days, then I want a field displaying 7 (5+2) displaying in the view issue screen of Parent issue. 

Capture.PNG

 

Similarly, if an issues has multiple linked issues with it, I want a field displaying total remaining time off all the issue and combined in the parent issue. 

 

I'm currenlty looking into Scripted Fields in Script Runner but I couldnt find any specific script for this purpose. 
Can anyone please help me out? 

 

Many Thanks. 

1 answer

0 votes
Tayyab Bashir
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 24, 2017

@JamieA could you please help me out with this script? 

Suggest an answer

Log in or Sign up to answer