Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Automation for budget/cost sum per epic

Jennifer Weber February 26, 2024

We added a numeric field to our issues in which we put the cost of this specific task. It should be added to the budget of the linked epic when it is updated. 

Can anyone share ideas how we could implement this?

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2024

Hi @Jennifer Weber 

welcome to the community.

So just to clarify that I got it correctly:

Whenever one of the child issues‘ codt field of an epic is updated the costs of all children should be summed and the sum should be written into same field in the epic?

Could you confirm that?

Best
Stefan

Jennifer Weber February 26, 2024

Hi @Stefan Salzl - yes exactly this is what we would like to do!

If using different fields or sth like that would make it easier we are flexible on that. 

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2024

Alright. I would suggest the following way:

Trigger:

  • when
    • field value of your "cost" field changes
    • condition: only start when the changed field´s issue has a parent/EPIC
  • then: 
    • collect all children of that epic (via lookupIssue)
  • branch:
    • to Epic
    • within the epic (as you then are in the context of the epic) edit field "budget"
      • fill in sum of lookupIssues´ field "cost" via smart value 
      • {{lookupIssues.cost.sum}}

See screenshot below (in my case I used the field "Number 1" in both child task and Epic).

 

Hope this is helpful. In case of any further questions just let us know.

Best
Stefan

 

image.pngimage.pngimage.pngimage.pngimage.pngimage.png

Jennifer Weber March 5, 2024

Thanks a lot! The automation does work but somehow it does not find any issues in the lookup-step, although there should be several. What could be wrong here?

=> No issues were found when searching for a user-defined value.

2024-03-05 09_51_57-Audit log - Automation - CMK-DIM - Jira.png

Jennifer Weber March 5, 2024

Just found the solution here => https://support.atlassian.com/jira-service-management-cloud/docs/jql-fields/#Epic-link 

2024-03-05 10_06_20-JQL fields _ Jira Service Management Cloud _ Atlassian Support.png

If I use "parent" instead of "epic link" it works perfectly. Thank you @Stefan Salzl 

 

Like Stefan Salzl likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2024

Nachdem dein Screenshot auf Deutsch ist können wir vermutlich auch in unserer Muttersprache kommunizieren :)

Freut mich sehr zu hören dass es funktioniert hat und dass ich helfen konnte.

LG
Stefan

Suggest an answer

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

Atlassian Community Events