Time Tracking sum up to Epic level
Asked by Senthil:

Hi,

I have project created with Epic, Story, Sub-task. We are capturing the log work on all the issue types, Is there a way to sum up all the log work against Epic.

I have read few post and looks like, there is no solution provided, but is there a way to roll up the time log against epic.

Thanks,  
Senthil


Answers:
author: Diana Belokon
body: Hi [@Senthil](/t5/user/viewprofilepage/user-id/4961941)

You can try simple app [EpicTime for Jira - SumUp of Worklogs](https://marketplace.atlassian.com/apps/1220287/epictime-for-jira-sumup-of-worklogs?hosting=cloud&tab=overview) developed by our team.

It sums up the work logs of the child issues to the epic.

![Screenshot 2019-04-18 at 15.17.10 (2).png](https://community.atlassian.com/t5/image/serverpage/image-id/202780i5E1B58F5F5A4D58C/image-size/large?v=v2&px=999 "Screenshot 2019-04-18 at 15.17.10 (2).png")

You can view the following information within Epic's issues:

* Epic Estimate
* Epic Time Spent
* Epic Remaining
* Epic Ratio (percentage of the spent time)

A variety of reports provide data about time results for all epic issues.

![ac32cb5c-1c69-47fb-a171-08d6e1e5c68b.png](https://community.atlassian.com/t5/image/serverpage/image-id/202781iADE81386C688DAEB/image-size/large?v=v2&px=999 "ac32cb5c-1c69-47fb-a171-08d6e1e5c68b.png")

Please feel free to ask any questions below or[to contact us.](https://jira.teamlead.ru/secure/hdportal.jspa)


author: Yvan Martin
body: Hi Senthil,  

Developer from Automation.  

So you are correct in that it is a bit of a complex setup to try and get that use-case working, the other thing that you'll run into is Jira already has a sum/aggregate feature for Sub-tasks to the parent however it unfortunately doesn't flow up to the epic level. ![Screen Shot 2022-06-17 at 6.32.06 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/202328i7F1BAB9924E71AF6/image-size/large?v=v2&px=999 "Screen Shot 2022-06-17 at 6.32.06 pm.png")![Screen Shot 2022-06-17 at 6.32.03 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/202329iFB92F6B248D035C5/image-size/large?v=v2&px=999 "Screen Shot 2022-06-17 at 6.32.03 pm.png")

Logging time is also an accumulative action, it's not intended to be used to just set the value it's designed around incrementing over time. Having said that one strategy we can use is putting a trigger on work logged and depending on the task editing the parent/epic.   

Another issue is because sub-tasks already have an include subtasks option then when that's selected you may see double time tracked given our rule would also be trying to do it, and if it didn't then you couldn't do a flow like sub-task -\> task -\> epic. It's also a little tricky since you'll need two rules once for sub-task -\> and another from task -\> epic, it would also require the option on rule details around "allow rule to trigger another rule".   

Here's an example that updates does the task -\> epic flow ![Screen Shot 2022-06-17 at 6.29.31 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/202331i72AF3B9CFFB5A665/image-size/large?v=v2&px=999 "Screen Shot 2022-06-17 at 6.29.31 pm.png")  

and as mentioned above you would need a second rule that does sub-task -\> task with the issue type check and branch on parent instead. But as mentioned given Jira already has that "Include subtasks" checkbox you may see double time logged which isn't a great experience.  

I hope this helps.  

Feel free to reach out to <https://support.atlassian.com/> for additional help.

comments: author: Jahidfazal Patil
body: Hi Yvan Martin,  

I am also looking for the same solution. I was trying your solution for task--\>Epic but i am not able to get the step as shown in below image ![jira_Auto_epic.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/222923iBD87A1B8E9B451B7/image-size/large?v=v2&px=999 "jira_Auto_epic.PNG")  

<br />

I am able to do only following:![jira_Auto_epic_2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/222925i9B6231C965B84DEE/image-size/large?v=v2&px=999 "jira_Auto_epic_2.PNG")![jira_Auto_epic_1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/222926i9925B03868F3DBA1/image-size/large?v=v2&px=999 "jira_Auto_epic_1.PNG")  

Also I was going through the following doc to setup this but i don't see this working <https://community.atlassian.com/t5/Automation-articles/How-to-sum-up-logged-hours-using-automation-in-Jira-Cloud/ba-p/1409115>