This article shows how to synchronize an Organizations field in Jira Service Desk.
The example below works in Exalate for Jira Server 8 starting from version 4.7.3 and in Exalate for Jira Cloud.
The Organizations field is a Jira Service Desk field, it's a single select drop-down list. Check the Jira Service Desk documentation for more details.
replica.customFields."Organizations" = issue.customFields."Organizations"
To set the received Organizations field value on your side use this code:
issue.customFields.Organizations = replica.customFields.Organizations
To set the value in your local Organizations field manually use this code:
issue.customFields.Organizations.value = "Organization Name"
To set multiple values in your local Organizations field manually use this code:
issue.customFields.Organizations.value = ["Organization Name1", "Organization Name2"]