Hello,
I created 3 automation rules because there were over 100 steps and needed to split into multiple rules. I'm trying to figure out how to trigger a second rule after the first rule completes. Similarly, how to trigger a third rule after the second rule completes.
In a rule detail, I checked the "Allow rule trigger" option.
However, I believe I need to have some kind of conditions to specify "the rule 2 starts after rule 1 completes". Does anyone know how to solve this?
My first thought would be to define a custom field to support triggering for rule chaining.
One such field could support all projects in an organization, as long as you controlled the field content across all your rules.
The "Field value changed" trigger will then focus on changes to that field for later rules in the chain. For a rule configured for a single project, this should not trigger excessively.
For the content of this field, I might suggest a GUID. That way you don't have to maintain a list of them (to avoid collisions with other rules using the field).
How would this work? After creating the custom field in your instance and configuring your project(s) to access it, you'd do the following to chain Rule A to Rule B:
Rule B should, of course, use the checkbox to enable other rules to trigger it.
NOTE: If your custom field is scalar (holds a single value), then ensure each project only has a single rule chain. If you want to support multiple rule chains in a single project, a bit more complexity is required:
Would be interested to know if this solution works for you!
@Mykenna Cepek
Thank you for your suggestions. I understand theoretically, but I'm not sure how to execute it due to my lack of experience in Jira automation.
I created sample rules: "RULE 1" and "RULE 2". However, when I tried to create a project, only the Rule 1 was executed. I'm sure my syntax in Rule 2 condition is incorrect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy & @Mykenna Cepek ,
It worked!
I created a sequential rule by looking at the {{issue.summary}} and it successfully made tasks in order.
Thank you for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kazumi Kerr -- Welcome to the Atlassian Community!
You are describing splitting down a rule with over 100 steps, and then triggering those rules sequentially.
I wonder if all of the steps you note are one atomic operation, or if there could be separate rules triggered on changes made...or even better, utilize the looping operations from advanced branching to help make a smaller rule. And perhaps some process analysis would reveal other simplifications to the rule (e.g. combined condition testing).
Given the limitations in the rule editor and error handling, smaller rules would be easier to maintain and improve.
Kind 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
Thank you for your suggestions. I agree that smaller rules would be easier to maintain and improve.
The rules I try to make is to crate a list of tasks/subtasks for each project. So, I would like to perform the rule 1 --> rule 2 --> rule 3 in order.
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.