Using Zendesk form ID to set Jira project

Originally asked by REMI LAFRANCE on 25 April 2023 (original question)


I’m looking the use the Zendesk form ID and the customfield Type to define the Jira project that will be used to create the Jira ticket. How do I compose the Zendesk outbound and Jira inbound script to do this?

So far, I only have a default project being setup in Jira…

if(firstSync){
issue.projectKey = “SUP”
issue.typeName = nodeHelper.getIssueType(replica.type?.name, issue.projectKey)?.name ?: “Support”