-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from atlassian/jsm_zendesk
Added zendesk trigger instructions
- Loading branch information
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
## Zendesk to JSM Trigger Setting | ||
### Create Action: | ||
- From the **Triggers** page, click **Create trigger**. | ||
- Put **Send Create action to JSM** into **Trigger name**, description is optional. | ||
- Under **Meet ALL the following conditions:**, add two conditions as specified below: | ||
- Status Is not Solved | ||
- Ticket Is Created | ||
- Under **Actions**, select **Notify by** and **Active webhook**, and pick the webhook you added earlier for the integration. | ||
- Paste the following into the **JSON body** field: | ||
``` | ||
{ | ||
"action": "create", | ||
"ticketId": "{{ticket.id}}", | ||
"status": "{{ticket.status}}", | ||
"via": "{{ticket.via}}", | ||
"title": "{{ticket.title}}", | ||
"external_id": "{{ticket.external_id}}", | ||
"link": "{{ticket.link}}", | ||
"priority": "{{ticket.priority}}", | ||
"due_date": "{{ticket.due_date}}", | ||
"ticket_type": "{{ticket.ticket_type}}", | ||
"assignee_name": "{{ticket.assignee.name}}", | ||
"organization_name": "{{ticket.organization.name}}", | ||
"group_name": "{{ticket.group.name}}", | ||
"account": "{{ticket.account}}", | ||
"requester_name": "{{ticket.requester.name}}", | ||
"description": "{{ticket.description}}", | ||
"latest_comment": "{{ticket.latest_comment_html}}", | ||
"tags": "{{ticket.tags}}" | ||
} | ||
``` | ||
|
||
### Resolved Action: | ||
- From the **Triggers** page, click **Create trigger**. | ||
- Put **Send Resolved action to JSM** into **Trigger name**, description is optional. | ||
- Under **Meet ALL the following condition:**, add a condition as specified below: | ||
- Ticket:Status Is Solved | ||
- Under **Actions**, select **Notify by** and **Active webhook**, and pick the webhook you added earlier for the integration. | ||
- Paste the following into the **JSON body** field: | ||
``` | ||
{ | ||
"action": "close", | ||
"ticketId": "{{ticket.id}}", | ||
"status": "{{ticket.status}}", | ||
"latest_comment": "{{ticket.latest_comment_html}}", | ||
"tags": "{{ticket.tags}}", | ||
"external_id": "{{ticket.external_id}}" | ||
} | ||
``` | ||
|
||
### Add Note Action: | ||
- From the **Triggers** page, click **Create trigger**. | ||
- Put **Send Add Note action to JSM** into **Trigger name**, description is optional. | ||
- Under **Meet ALL the following conditions:**, add two conditions as specified below: | ||
- Ticket: Is Updated | ||
- Ticket:Status Is Not Solved | ||
- Ticket:Comment Is Public | ||
- Under **Actions**, select **Notify by** and **Active webhook**, and pick the webhook you added earlier for the integration. | ||
- Paste the following into the **JSON body** field: | ||
``` | ||
{ | ||
"action": "addnote", | ||
"ticketId": "{{ticket.id}}", | ||
"status": "{{ticket.status}}", | ||
"latest_comment": "{{ticket.latest_comment_html}}", | ||
"tags": "{{ticket.tags}}", | ||
"external_id": "{{ticket.external_id}}" | ||
} | ||
``` |