I have a multi select field with values equal to the list of projects (7 out of 30 projects currently in my Jira Cloud).
When I select single value for this field my automation clones the epic where needed.
The problem is that when I select more than one values only one project gets the issue cloned, the rest are ignored.
How do I make it work?
Is this happening bcz I use else-if in the automation? I can't get more than two IF's without having the else-if appearing as the third option, and I need 7.
I need this to work from a single automation, as I'm allowing my users to trigger it manually when they need it. It isn't an option to create multiple rules that would do this.
Any help is appreciated.
Solved by changing the else/if to else.
The rule was stopping when reaching any of else/if successfully. After changing all conditions to else only - works as expected for any number of values for the multi-value field.
You might want to look into the "Advanced branch rule / related issues" component in Jira automation to handle multiple projects. This component allows you to branch your rule and perform actions based on related issues or fields like your multi-select field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As others have described, the advanced branch on smart values will help in this situation.
Specifically, you could use the additional smart values around field changes: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--
These would allow both adding the new values, and deciding what to do if a value was unselected from the list.
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.
Hi Javanshir,
Can you share the rule that you have so far please?
Also, if you use If/else, the rule will stop when you meet the condition the first time. That’s probably what you are seeing.
Add a branch for Current Issue for each project, along with the appropriate condition under each branch (you can just use the issue fields condition).
Then add your Clone issue under that. Once you do the first set, you can copy the branch and just change out the project in the condition.
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.