How to sync custom fields from one project to another project and vice-versa in same Jira Cloud?

Originally asked by Deva Kiran Reddy on 06 April 2020 (original question)


Hi all,

I am using Jira Cloud where i have two projects need to sync. But when i configured the connection using scripting mode, custom fields are not syncing to projects. Is there any way to sync all the custom fields at a same time from one project to another project? As the two projects has same field configuration in jira.

Please provide me a code to sync all the custom fields data to one project to another project.

Thanks in Advance !!!
Best Regards
Deva KiranSource: Jira Cloud (old community)


Answer by Juan Grases on 12 April 2020

Normally it will work just by doing:

Outgoing sync:

replica.customFields."CF Name" = issue.customFields."CF Name"

Incoming sync:

issue.customFields."CF Name".value = replica.customFields."CF Name".value

Of course make sure yo use the right Custom field name, you can also use the custom field ID instead of the name. You can find more details here:

https://docs.idalko.com/exalate/display/ED/How+to+Synchronize+Custom+Fields

Best regards,

Juan