Forums

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

Automation for Jira - Trigger working intermittently

Derek Imrie March 28, 2020

Automation for Jira for working intermittently.

 

Background

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
Ste Wright
Community Champion
April 12, 2020

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?

Ste

Suggest an answer

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

Atlassian Community Events