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

How to ensure an automation rule (triggered on issue transition) runs only one time per issue?

hpatani October 28, 2024

If an issue is transitioned to a specific state more than once - I want to ensure the automation rule runs only once.

Is this possible?

1 answer

3 votes
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 28, 2024

Hi!

From the top of my head I would do this with an issue property or a checkbox on the issue, depending on your preference. If you have to see on the issue view whether the rule has run for this issue, you would need a custom field. If it should not be visible you might prefer a property.

So at the beginning of your rule:

  • Get the property (eg. issue.processed.by.rule
  • If it does not exist
    • Execute the rule
    • Set the property
  • If it does
    • Skip the rule

Same for a custom field basically.

Hope this helps!

Jeroen

 

Suggest an answer

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

Atlassian Community Events