It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation for Jira - Trigger working intermittently Edited

Automation for Jira for working intermittently.



I have 9 single choice custom fields that have the choice yes no. I have another 9 number customfields.  the purpose of the rule is to take the yes/no answer, update the corresponding number field with with a number of either 20 or 0.  A further custom field will be a total of those 9 number fields.  Finally another custom field will be updated based on the total score.

Rule will fire during a transition called open and peer review.  The first time that you run this rule it works perfectly.  If you move it back to the open status update one of the yes/no fields and transition again, it will not update the total custom field.  Move back to open and then transition again and it works.  

the part that i think is failing is 

Then: Edit issue fields

Risk ScoreSelect a new condition or action.Add component

{{#=}}{{issue.Risk1}} + {{issue.Risk2}} + {{issue.Risk3}} + {{issue.Risk4}} + {{issue.Risk5}} + {{issue.Risk6}} + {{issue.Risk7}} + {{issue.Risk8}} + {{issue.Risk9}}{{/}}
it seems when it runs this part of the script the 2nd time had hasn't picked up that the previous part of the script has updated the one of the Risk number fields.

For example On first pass risk1 has been updated with 20, Risk2 has been updated with 20.  The above script will give you a score of 40.  

if you go back and update risk1 so that score is now 0, it Risk score should be calculated as 20 instead of 40 but it still gives you 40

Any help appreciated

1 answer

0 votes

Hi @Derek Imrie

It seems like quite a complex rule.

I think to answer the question we'd need to see the whole rule (Trigger, Conditions and Actions) - could you provide a view of this, if it remains an issue?


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

2,117 views 4 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you