You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/programs/servicenow-integration.md
+29-14Lines changed: 29 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ HTTP Method | POST
92
92
```
93
93
Make sure you enter the correct table name, as in this case, it's *incident*.
94
94
95
-
9.Get the full URL to your endpoint. <ul><li>The full URL to the `/hackerone/new_comment` endpoint is required to set up the HackerOne integration. The namespace can be found from within the HackerOne Scripted REST API you just created, in the “Resources” section at the bottom. Combine this with your instance URL found in the address bar to get the full URL.<li>As shown in the images below, this would be: https://dev100796.service-now.com/api/514345/hackerone/new_comment.
95
+
9.Copy the full URL to your endpoint and save it to be used for later. <ul><li>The full URL to the `/hackerone/new_comment` endpoint is required to set up the HackerOne integration. The namespace can be found from within the HackerOne Scripted REST API you just created, in the Resources tab underneath the Resource path column. Combine this with your instance URL found in the address bar to get the full URL.<li>As shown in the images below, this would be: https://dev100796.service-now.com/api/514345/hackerone/new_comment.
96
96
97
97

98
98

@@ -186,28 +186,30 @@ Name | Value
186
186
Accept | application/json
187
187
Content-Type | application/json
188
188
189
-
10. Navigate to **System Definition > Business Rules**.
189
+
10. Click **Submit**.
190
+
191
+
11. Navigate to **System Definition > Business Rules**.
190
192
191
193

192
194
193
-
11. Click **New** to create a new business rule.
194
-
12. Enter these values for these fields:
195
+
12. Click **New** to create a new business rule.
196
+
13. Enter these values for these fields:
195
197
196
198
Field | Value
197
199
----- | ------
198
200
Name | Add Comment
199
201
Table | Journal Entry [sys\_journal\_field]
200
202
Advanced | Make sure the box is checked
201
203
202
-
13. Enter these values for these fields on the **When to run** tab:
204
+
14. Enter these values for these fields on the **When to run** tab:
203
205
204
206
Field | Value
205
207
----- | ------
206
208
When | async
207
209
Insert | Make sure the box is checked
208
210
Filter Conditions | Value is not empty: AND : Name : is : incident
209
211
210
-
14. Enter this script in the **Advanced** tab:
212
+
15. Enter this script in the **Advanced** tab:
211
213
212
214
```
213
215
(function executeRule(current, previous /*null when async*/) {
@@ -225,6 +227,9 @@ Filter Conditions | Value is not empty: AND : Name : is : incident
225
227
}
226
228
)(current, previous);
227
229
```
230
+
231
+
15. Click **Submit**.
232
+
228
233
Make sure that the arguments for RESTMessageV2 matches the name you gave to the Outbound REST Message.
229
234
230
235
### Configure Close Report Event
@@ -235,40 +240,47 @@ To set up the close report event:
235
240
236
241

237
242
238
-
2. Search for the HackerOne REST Message that was set up in the previous section.
243
+
2. Search for *HackerOne*.
239
244
3. Click **New** to add a new method.
240
245
241
246

242
247
243
-
3. Enter these values to these fields:
248
+
4. Enter these values to these fields:
244
249
245
250
Field | Value
246
251
----- | -----
247
252
Name | Close Report
248
253
Endpoint | The Public ServiceNow URL visible in configuration wizard on the HackerOne platform
0 commit comments