How to Sync between Select List (single choice) and user picker custom field

    This article shows how to synchronize a select list with a user picker field. 

    Exalate allows syncing any kind of custom field type combination. For example, you have a custom field called userlist (select list Single Choice) to the custom field Escalated to (user picker field).

    Sending side

    Outgoing sync

    1 #
    2 # Include the customfield 'usersList' in the message sent to the receiving instance
    3 #
    4 replica.customFields."usersList" = issue.customFields."usersList"
    5 ...

    Receiving side

    Incoming sync

    1 # 
    2 # The replica.customFields."usersList".value is an object of type option. 
    3 # The option contains a value, which is the string of the option.
    4 # issue.customFields."Escalated to".value is a user picker type custom field, which includes string value
    5 #
    6 issue.customFields."Escalated to".value = nodeHelper.getUserByUsername(replica.customFields."usersList"?.value.value)
    8 ...