We are trying to create an automation rule in our service management project.
The triggers we are trying to use are 1. when issue is created 2. when issue status is changed from done to in progress.
I tried setting multiple issue events for the trigger but could not specify the transition so I guess that doesn't work in this case.
Would it be better to have multiple automation rules with the same action but different triggers? or is there a workaround for this.
Hi @kana_okuma and welcome to the Community!
Yes, sure. The trigger is what makes your automation rule fire. If only for clarity, it might be best to create different rules when they are triggered though different events, even if they perform the same actions.
You can copy an automation rule and then update the trigger of your copied rule to avoid having to rebuild all the steps manually.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@kana_okuma Let me mention an opportunity to eventually "merge" rules with different triggers. If you can combine the multiple "triggers" to the same JQL search, then you can use a single rule with the "periodic" trigger and with that JQL.
For your use case you could use a JQL similar to this:
created > now("-10m") or status changed > now("-10")
Of course, if your rule runs more frequently than 10 minutes, it will find the same work item multiple times. To avoid that, you can change your rule to add a "marker" label "Processed" and also test for that label.
(created > now("-10m") or status changed > now("-10")) and label != "Processed"
You probably get the idea.
If you have a large number of almost-identical rules, it can be a considerable approach. For just two rules, maybe the redundancy is fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.