The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rollup time from subtask to epic

Vishal Biyani
Rising Star
Rising Star
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 Champions.
June 4, 2024

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?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kalyan Sattaluri
Rising Star
Rising Star
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 Champions.
June 4, 2024

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!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events