Automation - can transition trigger exclude self-transitions?

Julia Foden March 1, 2021

Hi

I'm trying to set up a rule to clear a field value on all transitions except those which go from a status back to itself. In the particular workflow there are several of these self-transitions and I want to exclude all of them from the rule. Is there any way that I can do this in one rule? 

The alternatives that I can see are to create a separate rule for each transition where I do want the rule to run, Or put in post functions on all of those transitions.

But it would be ideal if I could do it in one rule. Thanks

2 answers

2 accepted

2 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 1, 2021

You would need separate rules. There is not a multi-select feature in the transition trigger.

Julia Foden March 1, 2021

Thanks @Jack Brickey 

1 vote
Answer accepted
Bill Sheboy
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.
March 1, 2021

Hi @Julia Foden 

Do you mean preventing a rule from proceeding when an issue transitions to the same status, such as from "In Progress" to "In Progress"?

If so, you may add an advanced condition in your rule to detect that

  • If {{#changelog.status}}{{fromString}}{{/}}
  • does not equal
  • {{#changelog.status}}{{toString}}{{/}}
  • ...proceed with your rule logic to clear the field

 

Best regards,

Bill

Julia Foden March 2, 2021

Thank you @Bill Sheboy that is an elegant solution!

What I had done was created a rule for each status, triggered by transitions from that status to any other and then a condition that the status does not equal the starting status. But your suggestion is much better. Thanks!

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events