Not getting the Custom Field sync value from JIRA to Zendesk

Originally asked by Dinesh Gupalan on 18 March 2024 (original question)


Hi,

Im trying to sync a Custom Field from Jira to Zendesk.

Outgoing JIRA:

replica.customFields.“Market” = issue.customFields.“Market”

Market Value:

Middle East

Nordics

South Africa

United Kingdom & Ireland

Incoming Zendesk;

issue.customFields.“Market”.value = replica.customFields.“Market”.value

When i run the the script, im getting below as a result in the field:
BasicHubOption{id=‘17909’, value=South Africa, sequence=‘23’, disabled=‘false’}

I only need the “Region” name as shown above to be visible in Zendesk field. How can i make this happen?

BR
Dinesh


Answer by Javier Pozuelo on 10 May 2024

Hi Dinesh,

Could you try the following in your Incoming sync of Zendesk?

issue.customFields.“Market”.value = replica.customFields.“Market”.value**.value**