Automation : Copy custom field values between subtasks and parents
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Jira Automation provides different ways to modify work item fields. These methods enable easy replication of work field data from parent items to child items, and vice-versa.
Solution
Create child work items including a copied value from parent items
In this example, we'll use a Manual trigger that will be executed from the Parent work item. It's also possible to use Automated triggers, including the Issue edited or Scheduled triggers if you prefer.
Go to Project Settings > Automation > Create Rule
Select Manual trigger
Optionally, you can choose to only display this trigger on your parent work item types
Select Add an action
Choose the Create work item action
Select a work type that is lower in the hierarchy than your trigger work type
Add a Summary to the created work
If you would like a dynamic summary based on the parent, we'd suggest using a Smart Value
In the Choose fields to set selector, select the Parent field, and any fields you'd like to copy to the newly created work
Set the Parent field to the Trigger issue
For the fields you'd like to copy, select ... (more options) > COPY > Copy from Trigger Issue
Copy field value from child work item to parent
Here, the trigger issue will be the child issue instead of the parent.
Go to Project Settings > Automation > Create Rule
Select Manual trigger
Optionally, you can choose to only display this trigger on your child work item types
Select FOR EACH: Add a branch > Branch rule / Related issues > Parent
Add the Edit work item action to the new branch
Select any fields you wish to copy
For each selected field, select ...(more options) > COPY > Copy from Trigger Issue
Copy field value from one child work item to parent, and all children of the same parent
We'll need two automation rules to accomplish this task, but both are triggered with only one user action.
We'll use a Manual trigger on the child work item to update a field on the parent. This will subsequently trigger the second rule, which runs on all additional child work items that have the same parent as our trigger rule.
Go to Project Settings > Automation > Create Rule
Select Manual trigger
Optionally, you can choose to only display this trigger on your child work item types
Select FOR EACH: Add a branch > Branch rule / Related issues > Parent
Add the Edit work item action to the new branch
Select any fields you wish to copy
For each selected field, select ...(more options) > COPY > Copy from Trigger Issue
The next rule runs automatically, triggered by the parent work item.
Go to Project Settings > Automation > Create Rule
Select the Field value changed trigger
Choose one of the fields edited by your previous rule
Select FOR EACH: Add a branch > Branch rule / Related issues > Children
Add the Edit work item action to the new branch
Select any fields you wish to copy
For each selected field, select ...(more options) > COPY > Copy from Trigger Issue
In the Rule details for this rule, ensure the box labeled "Check to allow other rule actions to trigger this rule" is checked
Otherwise, this rule will not run automatically after our previous rule
Was this helpful?