Based on multi select field values clone issues to other projects, more than one at a time

Javanshir Mustafayev March 10, 2024

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.

4 answers

1 accepted

2 votes
Answer accepted
Javanshir Mustafayev March 10, 2024

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.

1 vote
Peter _ DevSamurai
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 10, 2024

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.

0 votes
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 11, 2024

Hi @Javanshir Mustafayev 

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:

These would allow both adding the new values, and deciding what to do if a value was unselected from the list.

Kind regards,

0 votes
John Funk
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 10, 2024

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.

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events