File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ Authentication Type | Inherit from parent
253
253
254
254
5 . Enter this in the ** Content** field in the HTTP Request tab:
255
255
```
256
- {"event_name":"close_report","element_id":"${sys_id}"}
256
+ {"event_name":"close_report","element_id":"${sys_id}","hackerone_report_state": "${hackerone_report_state}" }
257
257
```
258
258
259
259
6 . Add these two HTTP Headers on the same HTTP Request tab:
@@ -284,6 +284,9 @@ Filter Conditions | State: changes to : Closed
284
284
try {
285
285
var r = new sn_ws.RESTMessageV2('HackerOne', 'Close Report');
286
286
r.setStringParameterNoEscape('sys_id', current.sys_id);
287
+ // Set the HackerOne report state.
288
+ // Possible state changes can be found here https://api.hackerone.com/core-resources/#reports-change-state
289
+ r.setStringParameterNoEscape('hackerone_report_state', 'resolved');
287
290
var response = r.execute();
288
291
}
289
292
catch(ex) {
You can’t perform that action at this time.
0 commit comments