Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation | How to copy compoments depends on the Parent components?

Mateusz Janczewski January 22, 2025

Let's assume that we have three components (design, art, tech). I would like to copy parent components to the newly created issue only if parent components don't include art or tech component. What's the best way to create one IF step in the automation so it's easy to extend the list of components?

2 answers

1 accepted

1 vote
Answer accepted
Bharat Kalia
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.
January 22, 2025

Hi @Mateusz Janczewski - Hope you are doing well. I think the best way to implement if you just want the "Components" to get filtered - Screenshot 2025-01-22 at 10.30.28 AM.png

 

This way you can add remove components easily. Other way would be to use a JQL if you want to add other conditions in one go. 

 

Thanks,

Bharat

Mateusz Janczewski January 22, 2025

@Bharat Kalia @Jack Brickey  thank you for answering quickly :) 

So, to clarify the intent - I'm trying to copy components to create an issue ONLY if Parent Components don't contain a certain value. To make it easy to extend, I'm trying to solve it through regular expression if the method I'm using doesn't work (screen). 

Any thoughts on this?

Mateusz Janczewski January 22, 2025

image.png

Bharat Kalia
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.
January 22, 2025

hi @Mateusz Janczewski - Can you please try using something like this in the condition - Screenshot 2025-01-22 at 12.30.23 PM.png

You can replace the "Second value" with your components list... One way to check is print the "{{issue.parent.components.name}}" in a log action within the rule so that you can get an exact value. 

Screenshot 2025-01-22 at 12.36.29 PM.png

Hope this will solve your problem. 

Thanks,

Bharat

Mateusz Janczewski February 11, 2025

Screenshot 2025-02-11 at 18.10.45.png

Hey, thank you for helping. Not sure why, but when I swapped the logic it started working :D 

Like Bharat Kalia likes this
Bharat Kalia
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.
February 11, 2025

Glad, I could help. Cheers!

Thanks,

Bharat

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2025

Hi @Mateusz Janczewski , it seems that you have a rule already create but maybe concerned about scaling this rule? If your condition is one of exclusion, meaning you only want to execute the action, if the parent doesn't include a list of components, then it should look something like below. If I am missing your point here, could you please elaborate, and maybe even include your current rule?

branch for parent

Issue fields condition components does not include x, y, z

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events