Assume we have status A and status B. There are two transitions from A to B. One called AB1, and one called AB2.
I'd like to trigger an automation rule when an issue goes through transition AB1, but not when it goes through transition AB2.
Is this possible with Automation? Currently, I don't see an option (see screenshot) to distinguish between specific transitions when there are multiple transitions between the same status pairs.
It would only be possible if you set a custom field that identify which transition was used. Automation rules runs after the transition is done (after data is written to the database).
I agree with your recommendation about the custom field, and I wanted to ask a follow-up question:
Are you certain the issue transition automation trigger only catches the event after the transition is completed (persisted)? That is clearly not true for events like issue creation, which have racetrack conditions in A4J that may require re-fetch because the data is not consistently available at the time a rule is triggered.
Thanks, and best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Yeah, the create event is a bit different, since not everything is in place when that event happens. From what I have seen so far, the transition event will only trigger the rule after it is completed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the info, Mikael.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Mikael Sandberg @Bill Sheboy
I was thinking about the custom field solution as well, but thought maybe there is a simpler way.
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.