How to sync customfields by ID (same Jira Instance)

Originally asked by Lara LG on 20 April 2020 (original question)


Hello,
In my Jira instance I have a customfield called location. There are 5 custom field called location. Exalate throws an error when trying to sync because there are a lot of this custom field. The documentation says I should call it by ID but does not specify the proper way.
If I am syncing two Jira Projects locally (same server) what would be the correct syntax?

Outgoing
Option 1: replica.customFields.“17800”= issue.customFields.“17800”
Ooption 2: replica.customFields.“customfield_17800”= issue.customFields.“customfield_17800”
Ooption 3:replica.customFields.“Location”= issue.customFields.“17800”

Incoming
issue.customFields.“17800”.value = replica.customFields.“17800”.value
issue.customFields.“customfield_17800”.value = replica.customFields.“customfield_17800”.value
issue.customFields.“17800”.value = replica.customFields.“Location”.value

Which one would be right?

ThanksSource: Jira Server/Datacenter (old community)


Answer by Juan Grases on 20 April 2020

It should be Option A:

Outgoing:

replica.customFields."17800"= issue.customFields."17800"

Incoming:

issue.customFields."17800".value = replica.customFields."17800"?.value

I will make sure the docs indicate this correctly.

Best regards,

Juan


Answer by Lara LG on 21 April 2020

Thanks Juan! I will try it!


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.