Automation to sum a filed from all the childrens of the same initiative

Eran Roiter
Contributor
December 12, 2024

Hey all,


I want to create an automation in Jira:
every time a child (Epics) "Name of a field" is updated, sum that field from all the children's of the same initiative and update that field for the parent issues.

I tried and added a log at the end of the automation i built, and for some reason it returns this: Lookup Issues Count: 23, Total DL Story Points: 0

Even though the field is not 0 in some of the epics. 

 

Thanks for your help ! 

1 answer

1 accepted

2 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 12, 2024
Bill Sheboy
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 Leaders.
December 12, 2024

Hi @Eran Roiter 

Adding to the suggestion from @John Funk 

The article John provides uses a scheduled trigger rule, perhaps updating the summed field once per day.

When an update is needed more often, multiple rules with different triggers are needed.  The specifics of which rules to add depend upon how accurately you want the sum to be tracked.  For example:

  1. when the field changes in a child issue, update the parent
  2. when a new child is added to a parent, update the parent
  3. when a child is removed from a parent, update the parent
  4. (combining #2 and #3) when a child issue is moved to a new parent, update both parents
  5. (edge case) when a child issue is deleted from Jira, update the parent
  6. (edge case) when a person manually changes the field in the parent, recalculate the sum from the child issues
  7. etc.

Kind regards,
Bill

Like # people like this
Eran Roiter
Contributor
December 15, 2024

Thank you guys ! 

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events