/
Add Comment to Zendesk ticket from Jira comment

Add Comment to Zendesk ticket from Jira comment

Create ticket from issue

  1. Goto Integrations

  2. Click New

  3. Enter a name, we will call it: Add Comment to Zendesk ticket from issue comment

  4. Select Template application/json

  5. Click Create

Edit the action details

  1. Select method PUT

  2. Add URL {your_instance_url}/api/v2/tickets/{{issue.customfield_10201}}
    Use the custom field id that you stored the Zendesk ticket id (from tutorial Create Zendesk ticket from Jira Issue )

  3. In the Authentication method select list select the credential created earlier (Token or OAuth)

  4. In the Body section add

    { "ticket": { "comment": { "body": "{{comments.latest.body}}", "public": true } } }



Add Trigger

  1. Click on the Triggers & Condition tab

  2. We will use the Issue Commented as event to when to send the issue comment to zendesk ticket

  3. Use the condition Run only on these project(s) and/or JQL and select the Jira project that will be the source for all Zendesk issues

  4. Click Save

 

Testing

  1. Goto the project that was selected in the Run only on these project(s) and/or JQL and comment an issue

  2. Result should be a 200 OK

Related content

JSON Path - Pick data from response
JSON Path - Pick data from response
Read with this
Create Zendesk ticket from Jira Issue
Create Zendesk ticket from Jira Issue
More like this
Zendesk - setup OAuth
Zendesk - setup OAuth
More like this
Zendesk - setup API token
Zendesk - setup API token
More like this
Comment Issue
More like this
Create an Integration
Create an Integration
More like this