| Last Edit Date: |
17th August 2022 |
| What's new: |
- Modified the rule to sum directly Original & Remaining Estimate to its values.
- Replaced images with new ones
- Removed old commentary which had no value to the new rule
|
Hi all!
Recently I faced the problem of finding a way to sum up the original estimate of all issue types of an epic, without the use of an addon. I was going to use only the native automation that Jira provides. At first my manager gave me a hint of this example to follow and I thought that "hey! I could use this to solve my problem in no time!".
How little did I know 
This example worked perfectly when you had stories and subtasks and you wanted to sum up story point. However my problem was a bit different. I had 4 different issue types (standard tasks) from which I wanted to sum up all original estimates and not story points. Long story short, after trying numerous ways and quite a few community proposed solutions, which in my case they didn't work, I came up with a kinda good workaround.
Rule
Below you will find my rule, which after testing it, it works like a charm:

So what the above rule does is that
- Step 1: It tracks changes on Time Tracking and log work
- Step 2: Rule keeps going only if the trigger issue type is specific
- Step 3: Create a branch for the parent of these issue types
- Step 4: Looks up to find all issues with the parent Epic Link
- Step 5: Sums up the original estimate and remaining estimate of the Epic's children
Rule Break Down
Below you will find each individual rule component.
Step 4

"Epic Link" = {{issue.key}}
Step 5

{
"fields": {
"timetracking": {
"originalEstimate" : "{{lookupIssues.Original Estimate.sum .divide(60)}}",
"remainingEstimate" : "{{lookupIssues.Remaining Estimate.sum .divide(60)}}"
}
}
}
Ending Note
I though to end this discussion by presenting to you the pros and cons of this rule, as well as my justification in creating and following it.
Pros
Cons
- This rule takes 3 to 3,2 seconds in duration (which I think is significant)
- It will not perform any calculation if you edit the Epic Link of the standard issue types, or if you delete an Epic's issue
I would very much like to discuss about this solution, and if you have anything better to suggest please do share!
Cheers,
Alex