As an workaround for log time actions you'll now need to use Work logged with {{worklog.timeSpentSeconds}} instead of using from/to, an example of updating the epic's original estimate would use
You might need to change the above branch/condition with parent link, or sub-task, depending on the relationship.
If you need also want original estimate changes on the child to update the parent, you'll need a second rule with field value changed trigger on time tracking
Now that I've spent endless hours trying to leverage the information provided to perform this same function with linked issues with no success, I'd like to graciously reach out for your assistance.
Use Case: Aggregately update Time spent field for an issue (in project A) based on the Time spent data entered on the linked issues (in project B). I do not need Original Estimate updated in project A as that information is input independent of what is input on the linked issues in project B.
Any guidance you can provide would be appreciated. I've also tried using ScriptRunner for Jira Cloud but I'm quite the novice and cannot successfully write a script without the simple prompts provided by Automation for Jira.
I've followed this topic to set automation and be able to sum all Log hours in child task and write those hours as the total number subtracted from the Remaining hours of the parent Epic.
I am solving two issues:
1) I can't trigger the automation of the following field values and don't know why. It works and send me testing email when changing Status or Assignee, but when logging hours, changing time tracking,... nothing happens. Do you know why?
2) I don't know if I can write the total sum of tracked hours of the child issues into the parent Epic (tracked hours) because the previous code does not work for me. My idea was simply duplicate the Log work from the triggered task and write the same worklog to the epic. The trigger will call the automation when someone create a new worklog. Can this work? I got these errors
I need to sum the logged time of the subtasks and report the result in the logged time of the story. So that the time tracking values of "remaining estimate" of the story will be updated automatically. I already have tried many automations but no one is working.
I am sharing my automation how to do this scenario:
1. Someone log work in child issue
2. this worklog will be automatically added to the parent epic with the comment of the worklog, link of the child issue and timespent
It means you don't need to sum up the total time and calculating total in Epic task but everything is done automatically in real time once anyone log any work.
Work description: {{worklog.comment}} - {{triggerIssue.url}}
Only keep in mind that the yellow If: all match conditions for giving-back task and the parent = DA-2546 is my testing epic and internal condition - delete it.
I can highly recommend to set Action: Send email to your e-mail address instead of the final desired action to be able to test if your scenario works or not, due to lots of bugs in JIRA automations. Good tip is also to all the variables (smart values) into the body of the testing email to be able to see what data are inside.
Thanks to @Sherry Goyal for a great article and good luck!
As I already mentioned above, the field value change trigger does not work as expected on "log work" and "timetracking" fields the way you are using in the above screenshot(Sorry about that). Here is the ticket where we are tracking it: https://codebarrel.atlassian.net/browse/AUT-1648
Hello Everyone, I tried setting up Automation as specified but its not found working, when i change Orig Estimates of Sub Tasks, its not rolling up to Task. I am using Standard Jira License, are there any pre requisites required to enable this automation. Thanks in advance!
I am also having the same issue with my set-up. It's set up as a global rule and I am not seeing that it is working for Epics with Tasks that have estimates. My Default unit for time tracking = Hour.
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.
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.
@Sherry Goyal thanks for your post. I have the following use case. to update the original estimate of an epic when any child issue has changed the original estimate value by updating the original estimate of the epic, summing all original estimates from the children's issues. It seems that is the use case you are referring to, but in your example, you use:
I am wondering if this works for this scenario, first, you are updating the remaining estimate, and I would need to update the original estimate only, and second, you iterate over all subtasks, which is not my case, I just want to sum up the original estimate of the epic children, not the information at the subtask level.
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.
I have noticed many post like this, though it seems something is missed or it is flying over my head :D
With trigger Issue created this doesnt work well. And for trigger Work logged for all operations, does the update or delete of task worklogs reflect on the Epic? I noticed that if it is updated, the new time is added to the epic and if existing worklog is deleted, that same time is added to the Epic. Both of these seem incorrect. Also, it does not look like we can identify if it is added , updated or deleted.
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.
Without seeing your complete rule, I can hypothesize the cause for the Issue Created trigger symptom...
That trigger can fire so quickly that the data is not yet available to the rule. This can cause conditions, actions, etc. to not work as expected.
The work-around / fix for this is to always add the Re-fetch Issue action immediately after the Issue Created trigger. This will slow down the rule by about a second and reload the data before proceeding with the remaining rule steps.
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.
@Bill Sheboy thanks for the reply - here is a screen grab. No, the add work log, update work log and delete work log all log the time additionally to the Epic where it should actually add/update/delete accordingly.
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.
@Yatish Madhav -- I recommend creating a new question and linking back to this thread for context. That will ensure better visibility to others to help. Otherwise only those following this thread will see it.
When you do that, please include images showing your complete rule, details of the relevant actions/conditions/branches, and of the audit log details showing the rule execution.
And...try to clearly identify the symptoms versus what you expected to happen. That will help target the ideas. (e.g. I was confused when you noted the Issue Created trigger and now you indicate that is not this rule's situation.)
52 comments