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.
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:
You would need to use the account ID associated with the user.
{
"fields": {
"destination field": [{ "id":"{{triggerIssue.source field.accountId}}" }]
}
}
Thank you very much, this solution worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. It worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm glad to hear you've been able to solve your problem. As stated within the other comment, please consider accepting the answer(s) - especially the one including the detailed workaround above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.