How to sync a multi-select custom field between 2 Jira instances?

Originally asked by Dhiren Notani on 19 February 2023 (original question)



Answer by Dhiren Notani on 19 February 2023

Hello,

From the source Jira Outgoing sync, try to send the field like this.

replica.“Approved By” = issue.customFields.“Approved By”

On the Target Jira incoming sync you will need to fetch the displayNames/email addresses of the users who are assigned on source.

You may try something like

for(int i=0; i<replica.“Approved By”.value[0].size(); i++)
{
issue.customFields.“Approved By”.value += nodeHelper.getUserByFullName(replica.“Approved By”.value.displayName[i].toString())
}

Thanks,

Dhiren