You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I know this was asked already here: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-can-I-ensure-an-Automation-rule-only-runs-once-for-an-issue/qaq-p/653124 and looks resolved, but the solution there does not work for me. Any clues?
I think that the best way to do so would be to create a custom field (e.g. "Rule executed") and add this field to the "View/Modify" screen of the projects you want.
After that, you create your rule and you start by checking if the field is empty. If it is, you execute your rule and you add an action at the end that says : Modify the custom field "Rule executed" and add a Y in it. This way, next time this rule will be executed, since the field is not empty, the rule will not execute.
Hope this helps.
Have a nice day
FMX Solutions - Gold Solution Partner
Thanks @Frederic Chartrand yes this makes sense, but is there another way to do it without adding an extra field to the issue. In fact we have many independent rules (not only one) and each one should run only once, so will be redundant to create a custom field for each rule.
Oh that's trickier than I thought. :)
Now this is just a thought and I never tried it but ...
Maybe the rule could add a comment to the ticket. Something like : "Automation Rule 1 executed"
And if you can find a JQL query that look through all the comments to find a comment by Automation for Jira containing "Automation Rule 1 executed" you don't execute the rule, else you execute it. I tried to find the JQL that would let me find a comment that meet both of this conditions but so far, didn't find anything. I'll update if I find something.