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

Matt Marchesano
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

 

Suggest an answer

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

Atlassian Community Events