Templates / Sync Zendesk tickets with subsequent comments to GitHub issues

Sync Zendesk tickets with subsequent comments to GitHub issues

Needs changes

by n8n Team ✓ · 1,176 views · created 2022-12-02 · Ticket Management

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
Function (legacy)
Determine
Code node, mode 'Run Once for All Items'

Nodes used (5)

ZendeskGitHub

What it does

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. Prerequisites - Zendesk account and Zendesk credentials. - GitHub account and GitHub credentials. - GitHub repository to create issues in. How it works 1. The workflow listens for new tickets in Zendesk. 2. When a new ticket is created, the workflow creates a new issue in GitHub. 3. The GitHub issue number is then saved in one of the ticket's fields (in setup(notion://www.notion.so/n8n/a1b8c2bc7d2b4aa3b90d50fa80b766d1?v=a3106a73c9fc41b88630cc9f091cf063&p=3c09e8cb58ea46658e9306950e9c01cf&pm=ssetup) we call this "GitHub Issue Number"). 4. The next time a comment is added to the ticket, the workflow retrieves the GitHub issue number from the ticket's field and adds the comment to the issue in GitHub. Setup This workflow requires that you set up a webhook in Zendesk. To do so, follow the steps below: 1. In the workflow, open the On new Zendesk ticket node and copy the webhook URL. 2. In Zendesk, navigate to Admin Center > Apps and integrations > Webhooks > Actions > Create Webhook. 3. 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. 4. Save the webhook. 5. In Zendesk, navigate to Admin Center > Objects and rules > Business rules > Triggers > Add trigger. 6. Give trigger a name such as “New tickets”. 7. Under “Conditions” in “Meet ALL of the following conditions”, add “Status is New”. 8. Under “Actions”, select “Notify active webhook” and select the webhook you created previously. 9. In the JSON body, add the following: { "id": "{{ticket.id}}", "comment": "{{ticket.latestcommenthtml}}" } 10. 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: 1. In Zendesk, navigate to Admin Center > Objects and rules > Tickets > Fields > Add field. 2. Use the number field option and give the field a name such as “GitHub Issue Number”. 3. Save the field. 4. In n8n, open the Update ticket node and select the field you created in Zendesk.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.