I need to get the the Zendesk ticket created date and populate to a custom date field in Jira On Prem.
However the issue.created value does not seem to work in Zendesk. The Exalate doco (How to Sync CreatedDate Field? | Exalate Documentation) doesn’t show Zendesk in the list of system labels at the top of the screen. But I tried it anyway.
Using the following in the Zendesk outgoing script should suffice:
def res = httpClient.get("/api/v2/tickets/${issue.key}.json")
def created_at = res.ticket.created_at
debug.error("${created_at}")
but you need to be careful about the format you receive it on the destination end. You might need to manipulate it a little (not sure as I have not tested it end to end).