Forums

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

Automation for child based on Epic Priority and field in the Child

Nick Youngerman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 28, 2022

I want to create an automation that when a child issue transitions to a certain state, the priority is auto-calculated from 2 fields.

  • Priority of the Epic that is linked
  • Custom Field

In essence, it's a 2 dimensional look up. I'm fine creating it with if/then statements, but would rather something cleaner because there are 25 combinations. I've started building out the if/then tree, looking like this:

Automation example.png

1 answer

1 vote
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.
November 28, 2022

Hi @Nick Youngerman -- Welcome to the Atlassian Community!

Without more details...I expect this can be done in a single statement without any if/else structures, using a mathematical expression wrapping conditional functions strung together repeatedly:

{{#=}} ( {{#if(equals(issue.priority.name, "Highest")}} 100 {{/}} ) * (  {{#if(equals(issue.urgency.name, "Right Now")}} 100 {{/}} ) {{/}}

Please give it a try, and if you get stuck please post your criteria/formula and the community can offer suggestions.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer