Sum up original estimate and time spent
Asked by Ramiro Justet:

Hi,

I need to sum up the work fields from stories to epics.

I found this formula:

```
{{#=}}{{issue.subtasks.timetracking.originalEstimateSeconds.sum}}/60{{/}}

There are an similar formula for stories like subtasks or another way to sum up?

What is the purpose of the fields
```

?original estimate

?Time spent

Thanks

```



```

```



```


Answers:
author: Ramiro Justet
body: Hi Mykenna,

thanks for you prompt answer!

Could you tell me what is the purpose of the fields

?original estimate

?Time spent

Thanks a lot

comments: author: Mykenna Cepek
body: They provide an aggregate of those values for Story-level issues by totaling up the values from the child Subtasks.

You might have hoped that they would also aggregate the time to Epics from the child Stories under that Epic. But no, Jira doesn't currently do that. I don't understand why, but it just doesn't.

More specifically, the first one aggregates the values in the "Original Estimate" field from all Subtasks to the "?original estimate" field in the parent Story-level issue.

The second one aggregates all the time logged to Subtasks into the "?Time spent" field in the parent Story-level issue.


author: Ramiro Justet
body: Thanks a lot Mykenna.

Bye


author: Mykenna Cepek
body: Note that there is also a field for "? Remaining Time", which again does what you would expect -- but again only aggregating from Subtasks-to-Stories (not from Stories-to-Epic).

These "aggregate fields" work as noted here in terms of viewing Jira issues, Jira Automation, JIRA API, etc. Curiously, elsewhere in Jira the Epic-level are sometimes aggregated for display (e.g. built-in reports, tracking progress when a Scrum Board setting for "Estimation" is set to "Remaining Estimate and Time Spent", etc).


author: Mykenna Cepek
body: Hi [@Ramiro Justet](/t5/user/viewprofilepage/user-id/778737). I'm sorry there isn't a better answer for you on this. But currently Jira Automation cannot do what you want here. I know it looks simple, but many of us have tried and failed. The current architecture of Jira Automation doesn't properly support "computing a sum in a loop".

If you want to read more about why, here are two prior threads here in the Community on these topics. The second is a rant of mine about why this doesn't work.

<https://community.atlassian.com/t5/Jira-questions/Sum-Up-Original-Estimations-Jira-Automation/qaq-p/1617188>

<https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Create-variable-New-component/ba-p/1448118#M3837>


author: Diana Belokon
body: Hi [@Ramiro Justet](/t5/user/viewprofilepage/user-id/778737)

If you are considering an add-on, you might try our simple app[EpicTime for Jira - SumUp of Worklogs](https://marketplace.atlassian.com/apps/1220287/epictime-for-jira-sumup-of-worklogs?hosting=cloud&tab=overview).

It can sum up the work logs of the tiniest child issues to the epic. The app counts every work item and automatically shows the remaining time for the Epic. At the end of epic, the app shows the ratio between estimated and spent time for the Epic issue.

![6f9185cc-a7f2-43d3-a2f6-958e9c170512.png](https://community.atlassian.com/t5/image/serverpage/image-id/175410i7FE755BBF4C7F0AF/image-size/large?v=v2&px=999 "6f9185cc-a7f2-43d3-a2f6-958e9c170512.png")

A variety of reports provide data about time results for all epic issues. You can also see the time spent on any task and subtask within an epic issue.

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


author: Deniz O?uz
body: Hi,

[WorklogPRO](https://marketplace.atlassian.com/apps/1212626/worklogpro-timesheets-for-jira?hosting=datacenter&tab=overview) provides special custom fields which shows [totals from subtask to epic](https://denizoguz.atlassian.net/wiki/spaces/WLP/pages/24477733/Time+Tracking+Panel?preview=%2F24477733%2F48889880%2Fworklog%20total%20for%20epics.png). It can also show this information in time tracking panel on the issue.


author: Ramiro Justet
body: [@RVS_Support](/t5/user/viewprofilepage/user-id/4578338)

Thanks for you advice.

Can [Agile Tools : Epic Tree \& Time in Status](https://marketplace.atlassian.com/apps/1223200/agile-tools-epic-tree-time-in-status?hosting=cloud&tab=overview) work together with Tempo Timesheet and Tempo Planner?

Thanks

comments: author: RVS_Support
body: Hi [@Ramiro Justet](/t5/user/viewprofilepage/user-id/778737)

This is feature is in our backlog and we plan to start working on it soon.

Thanks


author: RVS_Support
body: Hi [@Ramiro Justet](/t5/user/viewprofilepage/user-id/778737)

If you would be interested in a paid add-on, you cantry out our plugin,

[Agile Tools : Epic Tree \& Time in Status](https://marketplace.atlassian.com/apps/1223200/agile-tools-epic-tree-time-in-status?hosting=cloud&tab=overview)

The plugin provides complete hierarchy of your Epics with their statuses, % progress based on time estimates and story points at each level and much more. The app also allows to view your issue links in the hierarchy view with their progress.

Along with this the add-on also provides Links Hierarchy, Multiple (more than 8) Time in Status reports to track your issues and Worklogs report to track time spent each day/week/month, based multiple filters/group

![Epic Hierarchy.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/162907i5D06BB220D0E9A36/image-size/large?v=v2&px=999 "Epic Hierarchy.PNG")

comments: author: Mykenna Cepek
body: [@RVS_Support](/t5/user/viewprofilepage/user-id/4578338) - just for clarity, does your app **actually set the** **? fields** in the Epics to the aggregate totals?


author: RVS_Support
body: Hi [@Mykenna Cepek](/t5/user/viewprofilepage/user-id/3527113)

Currently no.

Thanks


Tags: atl-gruland