I have written a JIRA automation rule with the intent that if hours are logged against a subtask, then rule should trigger and add aggregatetimespent available at epic level for all standard Issues under the epic.
the rule is updating the field at sub-task instead of Epic.
Need help to fix. This is my rule
When Work Logged
Branch
For Current Issue
if issuetype in subTaskIssueTypes()
Used lookup issues:
"Epic Link" = {{ triggerIssue.parent.parent.key }}
Saved {{#=}} {{lookupIssues.aggregatetimespent.sum}} / 3600 {{/}} to a variable
Used lookup issues: key = {{ issue.parent.parent.key }}
Then Edit issue and update the custom field. However, the current field i.e. subtask is getting updated instead of epic.
How to fix this?
Hello @Vishal Biyani
Please share screenshot of your complete rule for us to review.. First thing that comes to mind is you are branching on Current Issue. You need to branch on Parent.
Also, if you are wanting to roll up from sub-task to epic, you need 2 rules.
Rule1: This does the roll up to story when subtask story points are updated.
Rule 2: And another rule, which gets triggered when story points is updated to roll up to epic.
And you need to enable the check box in rule 2 which says, allows this rule to be triggered by others because Rule 1 essentially triggers Rule 2 in this set up.
Hope it helps. Thanks!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.