-
Notifications
You must be signed in to change notification settings - Fork 55
/
triggerInstructions.txt
82 lines (75 loc) · 3.27 KB
/
triggerInstructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
- From the "Triggers" page, click "add trigger".
- Put "OpsGenie Create Alert" into "Trigger title".
- Under "Meet all of the following conditions:", add two conditions as specified below:
- Ticket:Status Is not Solved
- Ticket: Is Created
- Under "Perform these actions:", select "Notifications: Notify target" and pick the URL target you have added earlier for the integration.
- Paste into "Message" the following template:
action: create ||
id: {{ticket.id}} ||
status: {{ticket.status}} ||
title: {{ticket.title}} ||
tags: {{ticket.tags}} ||
link: {{ticket.link}} ||
external_id: {{ticket.external_id}} ||
via: {{ticket.via}} ||
priority: {{ticket.priority}} ||
ticket_type: {{ticket.ticket_type}} ||
score: {{ticket.score}} ||
groupname: {{ticket.group.name}} ||
due_date: {{ticket.due_date}} ||
account: {{ticket.account}} ||
assigneename: {{ticket.assignee.name}} ||
requestername: {{ticket.requester.name}} ||
organizationname: {{ticket.organization.name}} ||
in_business_hours: {{ticket.in_business_hours}} ||
description: {{ticket.description}}
- Click "Create trigger".
- After the trigger is saved, click "add trigger" to add the second trigger.
- Put "OpsGenie Add Note" into "Trigger title".
- Under "Meet all of the following conditions:", add a condition as specified below:
- Ticket: Is Updated
- Ticket:Status Is Not Solved
- Under "Perform these actions:", select "Notifications: Notify target" and pick the URL target you have added earlier for the integration.
- Paste into "Message" the following template:
action: addnote ||
id: {{ticket.id}} ||
status: {{ticket.status}} ||
latest_comment : {{ticket.latest_comment_formatted}} ||
external_id: {{ticket.external_id}}
- Click "Create trigger".
- Now click "add trigger" to add the last one.
- Put "OpsGenie Close Alert" into "Trigger title".
- Under "Meet any of the following conditions:", add two conditions as specified below:
- Ticket:Status Is Solved
- Ticket:Status Is Closed
- Under "Perform these actions:", select "Notifications: Notify target" and pick the URL target you have added earlier for the integration.
- Paste into "Message" the following template:
action: close ||
id: {{ticket.id}} ||
status: {{ticket.status}} ||
latest_comment : {{ticket.latest_comment_formatted}} ||
external_id: {{ticket.external_id}}
- Click "Create trigger".
----(OPTIONAL)----
In Zendesk:
- If you want to acknowledge OpsGenie alerts from some action on Zendesk ticket, please follow the following instructions
- Click on "add trigger" to add the trigger.
- Put "OpsGenie Acknowledge" into "Trigger title".
- Please specify the conditions to describe when you want to acknowledge the OpsGenie alert.
- Under "Perform these actions:", select "Notifications: Notify target" and pick the URL target you have added earlier for the integration.
- Paste into "Message" the following template:
action: acknowledge ||
id: {{ticket.id}} ||
status: {{ticket.status}} ||
latest_comment : {{ticket.latest_comment_formatted}} ||
external_id: {{ticket.external_id}}
- Click "Create trigger".
In OpsGenie:
- Open the Zendesk integration's page.
- Click on "Advanced"
- Add an "Acknowledge Alert" action
- Add a new condition filter as follows
- Select "Match all conditions below"
- Add "Action Contains acknowledge" as a condition
- Save the integration.