Forums

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

Automatically copy multiple components from an issue to created sub-tasks

Matt Marchesano February 6, 2025

I created an automated rule to copy the issue component(s) to all child sub-tasks. The issue has multiple components and my rule is combining these components into a single component. What do I need to change in my JSON to make sure it does not do this and inserts the separate component values? 

This is what I have: 

{ "fields": { "components": [ {"name": "{{issue.parent.components.name}}"} ] } }

1 answer

1 vote
Trudy Claspill
Community Champion
February 6, 2025

Hello @Matt Marchesano 

Welcome to the Atlassian community.

Is the parent issue the trigger issue for the rule?

You don't need to use Advanced Editing. In the Edit Issue action select the Components field. Click the ... button on the right and select COPY.

Screenshot 2025-02-06 at 1.50.07 PM.png

Click on the text that appears in the field, and select Trigger Issue to copy the Component values from the Trigger issue.

Screenshot 2025-02-06 at 1.52.13 PM.png

Matt Marchesano February 11, 2025

Hello @Trudy Claspill 

Thanks for the help! I appreciate the time you took to show the steps. I had to use Parent Issue to see the components copied to sub-tasks, but my rule steps may not be as efficient. Please confirm. 

JiraRule_Components.png

 

Trudy Claspill
Community Champion
February 13, 2025

That should work.

Suggest an answer

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

Atlassian Community Events