Webhook node
Jira Software node
Zendesk node

Sync Zendesk tickets with subsequent comments to Jira issues

Published 1 year ago

Created by

n8n-team
n8n Team

Categories

Support
IT Ops

Template description

This workflow creates a Jira issue when a new ticket is created in Zendesk. Subsequent comments on the ticket in Zendesk are added as comments to the issue in Jira.

Prerequisites

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 Jira.
  3. The Jira issue key is then saved in one of the ticket's fields (in setup we call this "Jira Issue Key").
  4. The next time a comment is added to the ticket, the workflow retrieves the Jira issue key from the ticket's field and adds the comment to the issue in Jira.

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 the 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.latest_comment_html}}"
    }
    
  10. Save the Zendesk trigger.

You will also need to set up a field in Zendesk to store the Jira issue key. To do so, follow the steps below:

  1. In Zendesk, navigate to Admin Center > Objects and rules > Tickets > Fields > Add field.
  2. Use the text field option and give the field a name such as “Jira Issue Key".
  3. Save the field.
  4. In n8n, open the Update ticket node and select the field you created in Zendesk.

Share Template

Implement complex processes faster with n8n

red icon yellow icon red icon yellow icon