How to copy custom field value from child issue A to child issue B

Loic
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!
January 4, 2025

Hi,

The parent issue have 2 child issues (A and B). I would like to copy some custom fields value from child A to child B. The trigger will be either Form Summited or Issue transitioned. Some value will be copied when a form will be submitted in Child issue A and other when the status change in child issue A.

I'm very new to JIRA and to programming. So if the answer involves JQL or JSON, please give detailed instructions.

Thanks for your help

1 answer

1 accepted

4 votes
Answer accepted
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.
January 4, 2025

Hello @Loic 

Welcome to the Atlassian community.

Are the child issues in the same project as each other and the same project as their parent issue?

What is your level of access to the project? Are you assigned to the Administrator role in the project?

Do you have any experience with the Jira Automation feature? The documentation is found here:

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

Jira Product Administrators can create Automation Rules. They may also configure Jira to allow non-Jira Product Admins to create Automation Rules that operate against a single project. If you have access to do that, then you would find the feature by selecting Project Settings > Automation.

If you have been working on Automation Rules for this task, please provide screen images showing us what you have so far, and tell us at what point you are stuck.

 

Loic
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!
January 4, 2025

Hi @Trudy Claspill

I have Administrator role. I'm familiar with automation in JIRA.

The 2 child issues are under the same Parent issue and under the same project.

 

Loic
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!
January 4, 2025

2 scenarios:

First: when I submit a form under Child issue A, I need the value of the field  GM_Date_Visite_Planf to be copied in Child issue B.

Second: when the status change in Child Issue A, I need to copy the data of the field GM_Visite_Statut from child issue A to child issue B.

Loic
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!
January 4, 2025

Test Jira 1.PNGTest Jira 2.PNG

Loic
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!
January 4, 2025

This is for when the status change scénario:

Child issue A = Visite

Child issue B = Evaluation

I tried Branch ruel using Subtask and Child issue.... THe audit log says: NO ACTION PERFORMED and No related issues could be found.

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.
January 4, 2025

Hello @Loic 

Thank you for that additional information.

Using the Subtask branch would try to shift to subtasks of the issue that triggered the rule. Using the Child Issues branch would try to shift to child issues of the issue that triggered the rule.

What you really want is to shift to the sibling of the issue that triggered the rule.

To do that you need to use a JQL branch.

Screenshot 2025-01-04 181646.png

The JQL statement is saying "give me all the issues that have the same Parent as the issue that triggered the rule.

If the issue might have multiple siblings and you want only one specific sibling, then you can add more criteria to the JQL.

Like Rilwan Ahmed likes this
Loic
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!
January 4, 2025

THANKS!! It works perfectly... Thank for you quick answer.

Like # people like this

Suggest an answer

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

Atlassian Community Events