Published 1 year ago
This workflow creates a GitHub issue when a new ticket is created in Zendesk. Subsequent comments on the ticket in Zendesk are added as comments to the issue in GitHub.
This workflow requires that you set up a webhook in Zendesk. To do so, follow the steps below:
In the workflow, open the On new Zendesk ticket
node and copy the webhook URL.
In Zendesk, navigate to Admin Center > Apps and integrations > Webhooks > Actions > Create Webhook.
Add all the required details which can be retrieved from the On new Zendesk ticket
node. The webhook URL gets added to the “Endpoint URL” field, and the “Request method” should match what is shown in n8n.
Save the webhook.
In Zendesk, navigate to Admin Center > Objects and rules > Business rules > Triggers > Add trigger.
Give trigger a name such as “New tickets”.
Under “Conditions” in “Meet ALL of the following conditions”, add “Status is New”.
Under “Actions”, select “Notify active webhook” and select the webhook you created previously.
In the JSON body, add the following:
{
"id": "{{ticket.id}}",
"comment": "{{ticket.latest_comment_html}}"
}
Save the Zendesk trigger.
You will also need to set up a field in Zendesk to store the GitHub issue number. To do so, follow the steps below:
Update ticket
node and select the field you created in Zendesk.Implement complex processes faster with n8n