Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Sync User Picker (Multi users) custom field

 
1
0
-1

Could you please let me know how to Sync User Picker (Multi users) custom field.


Thanks

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi!

      On the out going sync you can use:

      replica.customFields."Multi Users" = issue.customFields."Multi Users"



      On the incoming you can use:

      def remoteUsers = replica.customFields."Multi Users"?.value
      issue.customFields."Multi Users".value = remoteUsers?.collect{nodeHelper.getUserByEmail(it.email)} ?: []
        CommentAdd your comment...