-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplaybook-ServiceNow.yml
More file actions
209 lines (209 loc) · 4.06 KB
/
playbook-ServiceNow.yml
File metadata and controls
209 lines (209 loc) · 4.06 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
id: playbook-ServiceNow
version: -1
fromversion: 5.0.0
name: playbook-ServiceNow
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 4bb84a5e-6e50-4312-88a6-b1c98519b9fe
type: start
task:
id: 4bb84a5e-6e50-4312-88a6-b1c98519b9fe
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
view: |-
{
"position": {
"x": 50,
"y": 50
}
}
"1":
id: "1"
taskid: e08f9e1d-1c38-44ff-8b8d-ab0d6a3a84b7
type: regular
task:
id: e08f9e1d-1c38-44ff-8b8d-ab0d6a3a84b7
version: -1
name: Get incidents
script: ServiceNow|||servicenow-query
type: regular
iscommand: true
brand: ServiceNow
nexttasks:
'#none#':
- "2"
scriptarguments:
limit:
simple: "1"
sysparm_query: {}
ticket_type: {}
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
"2":
id: "2"
taskid: 045b338b-9171-4c3a-83a1-f4cbc26267a3
type: regular
task:
id: 045b338b-9171-4c3a-83a1-f4cbc26267a3
version: -1
name: Delete Context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
all:
simple: "yes"
key: {}
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
"3":
id: "3"
taskid: c85321aa-94fa-4f5b-8fb7-2249c4ff5d2a
type: regular
task:
id: c85321aa-94fa-4f5b-8fb7-2249c4ff5d2a
version: -1
name: Create new ticket
script: ServiceNow|||servicenow-create
type: regular
iscommand: true
brand: ServiceNow
nexttasks:
'#none#':
- "4"
scriptarguments:
active: {}
activity_due: {}
additional_assignee_list: {}
approval_history: {}
approval_set: {}
assigned_to: {}
assignment_group: {}
business_duration: {}
business_service: {}
business_stc: {}
calendar_duration: {}
caller_id: {}
category: {}
caused_by: {}
close_code: {}
close_notes: {}
closed_at: {}
closed_by: {}
cmdb_ci: {}
comments: {}
comments_and_work_notes: {}
company: {}
contact_type: {}
correlation_display: {}
correlation_id: {}
custom_fields: {}
delivery_plan: {}
description: {}
display: {}
due_date: {}
escalation: {}
expected_start: {}
follow_up: {}
group_list: {}
impact: {}
incident_state: {}
knowledge: {}
location: {}
made_sla: {}
notify: {}
number: {}
order: {}
parent: {}
parent_incident: {}
priority: {}
problem_id: {}
reassignment_count: {}
reopen_count: {}
resolved_at: {}
resolved_by: {}
rfc: {}
severity: {}
short_description:
simple: TestPlaybook
sla_due: {}
state: {}
subcategory: {}
sys_updated_by: {}
sys_updated_on: {}
template: {}
ticket_type: {}
type: {}
urgency: {}
user_input: {}
watch_list: {}
work_end: {}
work_notes: {}
work_notes_list: {}
work_start: {}
view: |-
{
"position": {
"x": 50,
"y": 545
}
}
"4":
id: "4"
taskid: 1d6b1623-530a-4b3d-8978-f4cd581946b7
type: regular
task:
id: 1d6b1623-530a-4b3d-8978-f4cd581946b7
version: -1
name: Get ticket info
script: ServiceNow|||servicenow-get
type: regular
iscommand: true
brand: ServiceNow
scriptarguments:
id: {}
number:
simple: ${Ticket.Number}
ticket_type: {}
view: |-
{
"position": {
"x": 50,
"y": 720
}
}
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 765,
"width": 380,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []