Simon your rule seems ok. I've tested again my own and it's working alright.
I know that this can be a dumb thing to say, but you please check that your task/planung issue type has indeed a value? And when you make sure of that, can you go ahead and refresh the Epic page? It takes a while to update the field with the value.
Hey Alex, All the issue which are part of the epic have a value. When the rule executes automatically, the value that I added manually was changed to "0m" again. (from 2h to 0m)
After a lengthy search about how to create a rule that adds up Original estimate and Time remaining from a Story to an Epic, your post was a breath of fresh air. However, it seems that it is working only for Original estimates field, for me this rule is not working on of Time remaining field (the hours are not 'removed' at an Epic level when I log hours on a Story level).
I use an additional add on for time tracking (Tempo) is this the issue? or is there another issue?
P.S.: I only started to work with Jira Rules today.
I having the issue in my automation rule. I tried to calculate Due date based on post function.
I attached my post function screenshot below
Based on function I created the automation rule. I added the smart value for this numeric expression as "{{issue.duedate}} - {{issue.timeoriginalestimate}} / {{8*60}}" in Due date . But when i execute this rule its not adding the due date field in the sub task.
I having doubt my smart value is correct or not. Please someone could help me for this issue
I believe that you should create a Jira question for this issue you are having. If you have any question regarding the automation I presented here, feel free to ask!
Your trigger events are "Time tracking" and "Work logged". I am wondering what is the difference between them.
Anyhow, I have noticed they are not triggering the event when someone updates "Remaining Estimates" on a task or sub-task. So I thought to create a rule for calculating the aggregated values triggered by changes of remaining estimate. Unfortunately, Remaining Estimate is not in the list of fields for the "Field value changed" trigger.
Any idea how to set up a trigger for rolling up updates of remaining estimate?
Thank you for the detailed article, it's really appreciated! However unfortunately I'm having some issues with this automation. I have recreated it exactly as written except only for story type issues, but the automation seems to be cumulatively adding to the epic's timetracking fields instead of replacing them.
For example, if I have an epic with no children and 0m original estimate and create a child story with 1h original estimate, the epic updates to 1h also - so far so good. But if I add a second child also with 1h estimate, the epic now updates to 3h - the original field (1h) plus the first child again (1h) plus the second child (1h).
The rule is successfully running with no issues in the audit log, and looking at the Atlassian documentation an update *should* do a set and replace the original value.
After some further experimenting, I found the issue. Using "Epic Link" = {{issue.key}} did not work for me because our epic links are not just the issue key, they are text fields. So I was using (as you can see in the screenshot) parentEpic = {{issue. Key}} instead, which was also finding the epic itself. changing the lookup issues query to "parentEpic = {{issue. Key}} AND issuetype != Epic" has solved my issue.
Instead of Log work and Remaining work fields, I'm planning to use Original Estimate field? But as I see, Original Estimate Field is not showing up in the fields dropped down.
Any thoughts there?
BTW, I had used a similar one for the Story Points, which is working smoothly.
@Neeraj Patil on standard issue types there is a checkbox under time spent/remaining estimate to include subtasks. This works for the two fore mentioned fields but not for the original estimate. What fields do you want to sum up?
Thanks for sharing. It is the only one that I could achieve somehow a result!
However, it works on some specific cases:
Once a task is created as a child under the Epic, original estimate value of the task is added to the original estimate & time spent of the Epic --> OK
Once a task is updated by entering time spent in terms of hours, remaining time of the Epic is updated accordingly --> OK
Once a task is updated by entering time spent in terms of others (weeks/days/minutes) , remaining time of the Epic is NOT updated accordingly --> NOK
Once a subtask is created under the task of the Epic, although remaining of task is updated accordingly, this update has no impact on the remaining time of the Epic --> NOK
Thank you for this post. Unfortunately I experience the same problem as @Simon Huprich The automation rule succeeds, but the Epic won't sum up the Original Estimate values from work items. When the rule executes automatically, the value that I added manually was changed to "0m" again. (from 2h to 0m)
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.
The automation rule succeeds, but the Epic won't sum up the Original Estimate values from work items. When the rule executes automatically, the value that I added manually was changed to "0m" again.
67 comments