Copy value of people custom fields in different projects using an automation rule.

Swati Verma
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!
December 4, 2024

I want to copy the value of a customdfield_12567 of PB project (Task) to another customfield_11776 of PMO project (Epic), through automation rule when task from PB project is transitioned to "Clone to PMO" a clone epic is created in PMO.

 

Customfield_12567 and Custom field_11776 are both people field (restricted to single select). 

PB and PMO project are both team managed project.

 

I am not able to select the custom field from the edit field area therefore I need a json for the additional field area.

 

I am attaching the screenshot of both the projects with the field highlighted and the automation rule I have created to copy the value when a clone ticket is made.

 

Kindly help me here.

 

PMO Project.JPGPB project.JPGclone to pMO.JPGhelp.JPG

2 answers

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.
December 4, 2024

Hello @Swati Verma 

Welcome to the Atlassian community.

Have you reviewed the documentation on Advanced Editing with JSON?

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

It outlines the general syntax and the syntax for setting specific types of fields. A People field in a Team Managed project can be either single or multiple selections, so you have to set it as if it was a multiple selection user picker field:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-user-picker-custom-field

You would need to use the account ID associated with the user.

{
"fields": {
"destination field": [{ "id":"{{triggerIssue.source field.accountId}}" }]
}
}

 

Swati Verma
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!
December 4, 2024

Thank you very much, this solution worked.

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.
December 4, 2024

Hello @Swati Verma 

I'm glad I was able to help you.

Please consider clicking on the Accept Answer button to mark your Question as Solved. This helps other users searching the community find the posts that have validated solutions.

0 votes
Thorsten Letschert _Decadis AG_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 4, 2024

Hi @Swati Verma ,

The problem described here sounds similar to yours, speaking of the "user picker (People) type" regarding the custom field of interest: https://jira.atlassian.com/browse/AUTO-421

The link includes a workaround that might fit you!

Regards from Germany,
Thorsten

Swati Verma
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!
December 4, 2024

Thank you. It worked.

Suggest an answer

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

Atlassian Community Events