Requester sync between 2 Zendesk Nodes

Originally asked by Mariia Onyshchenko on 19 March 2021 (original question)


How to sync Requester between 2 Zendesk Nodes in a Script Mode?
I’m guessing it will not work if I just add

issue.status         = replica.status

in outgoing sync on both sides…


Answer by Serhiy Onyshchenko on 19 March 2021

Hey, Mariia Onyshchenko, requester is a different field from status.
I believe it’s managed through

issue.reporter

property. Would this work:

issue.reporter = nodeHelper.getUserByEmail(replica.reporter?.email) ?: ({ user -> user.key = user.email; user })(replica.reporter) 

Regards, Serhiy.