Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Why Jira Automation firing twice with different results?

I have an automation rule which fires at issue creation and is simple if/else-if/else block and sets issue field value based on checkboxes checked at issue creation.

Whenever the issue is created issue history shows that rule is fired twice with different results. Rule eventually set's correct value, but i can't understand why it tries incorrect value first. Rule audit log shows that correct if/elseif/else branch is selected.

 

I have another rule which is exact same but uses different fields and it never fires twice.

 

1 answer

0 votes
Tim Kopperud
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.
Nov 16, 2023

Hi @Uldis Berzins, one reason for this can be that you have another rule triggering this rule. Check if the rule is allowed to be triggered from other rules by looking into the Rule details. Try to temporarly uncheck Allow rule trigger if it's cheched and test if it now fire twice. 

image.png

TimK.

Thanks for reply, but that's not the reason. Checkbox is disabled.

Question is not only why it fires twice, but why produce different results when it fires.image.pngimage.pngimage.png

Now for some more strange behaviour.

Changed the trigger from "Issue created" to "Changed field value when issue created.

Out of 3 test 

- first one fired only once.

- Second and third again fired twice, but this time with same result.

image.png 

Tim Kopperud
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.
Nov 17, 2023

Hi @Uldis Berzins, thanks for attaching in image of the rule, this is helpfull. Though I understand you get two different results let's first focus on the "rule executes twice".

Issue history only shows that the issue was editet twice, it doesn't actually show the number of rule executions. The rule audit log will show if the rule is fired twice. 

Can you confirm that you actually have two entries in the rule audit log? 

TimK.

No, rule audit log shows single entry, but issue history shows that value has been changed twice by automation.

Tim Kopperud
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.
Nov 17, 2023

Hi @Uldis Berzins OK, good. Then we can conclude the rule is firing only once as wanted but the rule do edit the issue twice which is not wanted. I suspect the root cause is the rule itself. 

Can you add log actions into your rule, so we can see where it hits in the rules Audit log? E.g like I have done here:

image.png

TimK.

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