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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
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?
Hi Dalia,
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
Frederic Chartrand
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome, I love this idea @Frederic Chartrand , if you can find the JQL which would search the comments please share
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The rule was about creating a subtask with a specific title, so I added a (related-issue) condition to confirm with a JQL that existing subtasks are not part of a JQL querying all subtasks with the same title (summary) and are not Done yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.