Sync Zendesk requestor username to Jira custom field

Originally asked by Christos Katsivas on 18 September 2020 (original question)


I would like to ask you, how can i to sync the requester username from Zendesk to Jira in the text custom field.

Thank you


Answer by André Leroy-Beaulieu Castro on 18 September 2020

Hi Christos!

Zendesk Outgoing Script:

replica.reporter = issue.reporter

Jira Incoming Script:

//Change "Text Field" to the actual name of your field
issue.customFields."Text Field"?.value = replica.reporter?.username

Thanks!

André