How to sum up Original Estimates from Tasks to Epic
Asked by S?ren Rangstrup:

I want to establish an overview of the summarized Original estimates and I succeeded in summarizing Original Estimates from sub-tasks to their parent (task level) by using the following rule:

{{issue.subtasks.Original Estimate.sum.divide(3600)}}h

See below trigger used.

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

Additionally, I would like to summarize Original Estimates from tasks to their parent (Epic level) and the logic rule for this is:

{{issue.tasks.Original Estimate.sum.divide(3600)}}h

However this does not work.

How do I summarize Original Estimates from tasks to their parent (Epic level)?


Answers:
author: Marc - Devoteam
body: Hi [@S?ren Rangstrup](/t5/user/viewprofilepage/user-id/5579464)

Welcome

I have this in place on my instance it it works on my end.

* **Trigger:** Field value changed
  * Fields to monitor = Time tracking
* **Condition:** Issue fields condition
  * Field = Issue Type
  * Condition = equals
  * Value = Task
* **Branch:** Related issues
  * Type = Parent
    * **Branch-Action:** Edit Issue
      * Field = Original Estimate
        * Value = *{{#=}}{{issue.tasks.original estimate.sum}} / 3600{{/}}*

I've used "/3600" as my default time unit is hours, if your default unit is minutes, you would use "/60" instead

The Original Estimate in a smart value is shown in seconds, so you need to divide it into your default unit.

comments: author: S?ren Rangstrup
body: Hi Marc

Thank you very much for your quick reply.

I have implemented your suggestion above. However, it doesn't seem to work on my end. The below shows how it looks.

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

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

I would like to have the Original Estimate summarized in the red circle below.

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

I would be happy if you could help me further on this.


author: Marc - Devoteam
body: Hi [@S?ren Rangstrup](/t5/user/viewprofilepage/user-id/5579464)

What does the audit log of the rule provide as feedback?


author: S?ren Rangstrup
body: Hi Marc,

Please see below.

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


author: Marc - Devoteam
body: What is the message, you get when an error is occured?


author: S?ren Rangstrup
body: Please see below. I would appreciate your feedback to help me solving this.

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


author: Marc - Devoteam
body: Hi [@S?ren Rangstrup](/t5/user/viewprofilepage/user-id/5579464)

This will occur when you have the incorrect smart value for the field, as it becomes an empty/null value in the expression.

So if the field has no value, this can occur.

You could set your calculation like this:  

{{#=}}{{issue.tasks.original estimate.sum\|1}} / 3600{{/}}

The the field always has 1 as default in the calculation, if the field is empty in an issue. When performing the automation.


author: S?ren Rangstrup
body: Thanks for your feedback. However, it still doesn't work.

![Udklip.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/345986i2846EBAC3D3121C9/image-size/large?v=v2&px=999 "Udklip.PNG") I got the following error:

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

I hope this can help you to see what is wrong.


author: S?ren Rangstrup
body: Hi March

Have you had the opportunity to look into my question above?

/S?ren


author: Marc - Devoteam
body: Hi [@S?ren Rangstrup](/t5/user/viewprofilepage/user-id/5579464)

Could you try to use: {{#=}}{{issue.tasks.originalEstimateSeconds.sum\|1}} / 3600{{/}}

It might be that the divider option is not correct (3600), but this can be adjusted off course.


author: S?ren Rangstrup
body: I have typed in the suggested value, but it doesn't summarize. I have the following error code:

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

If I change "3600" to "60" it summarizes any value to 0m. So It might be something with the "3600" that should be adjusted.

Could you help me further on this?


author: Helen McSparron
body: I would like help with the above issue as well. I get so far, but my error is different to the user above. This is my query (following your example)

![Capture.GIF](https://community.atlassian.com/t5/image/serverpage/image-id/347569i14CC8F137CF904AE/image-size/large?v=v2&px=999 "Capture.GIF")![Capture2.GIF](https://community.atlassian.com/t5/image/serverpage/image-id/347570i7522799F2920EE50/image-size/large?v=v2&px=999 "Capture2.GIF")

This is the error message that I get in the log. I am sure the Time tracking is correct, Original Estimate is on all issue type. Wondering - is the configuration case-sensitive?![Capture3.GIF](https://community.atlassian.com/t5/image/serverpage/image-id/347571iCAB135B76367ED4A/image-size/large?v=v2&px=999 "Capture3.GIF")


author: Mehmet A _Bloompeak_
body: Hi [@S?ren Rangstrup](/t5/user/viewprofilepage/user-id/5579464)

Welcome to the Atlassian Community!

If you prefer using a marketplace app, you can try [Sum Up Reports for Jira](https://marketplace.atlassian.com/1231321) app developed by our team. This app provides various table reports based on the fields you choose.

++App Features:++  
* You can list the issue fields you want and sum up the values at the bottom.
* You can group your data on any field (sprint, status, assignee, component, project etc.) and sum up the field values (story points, time estimate etc.) or take averages.
* You can add this app as a gadget to your Jira dashboards.

Here is our [live demo dashboard](https://sumup-pro.bloompeak.io/demo) where you can see and modify any sample report and play with it.

For further details, you can have a look at [Sum Up and Average Reports in Jira Dashboards](https://community.atlassian.com/t5/App-Central/Sum-Up-and-Average-Reports-in-Jira-Dashboards/ba-p/2596950) article.

If you have any questions, feel free to [schedule a demo](https://bloompeak.io/schedule-a-call) with us.

Hope it helps.


Tags: cloud

jira-service-management

jira-service-management-cloud