Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 25 additions & 37 deletions ServiceNow_Update_Incident.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"targetPort": "12_in"
}
],
"hash": "93b827a7ce3f1955682a09812515c841dcd18932",
"hash": "7c2f5f67cec1382644c17bbe9b39852d1e0605ed",
"nodes": {
"0": {
"data": {
Expand All @@ -139,8 +139,8 @@
"id": "0",
"type": "start",
"warnings": {},
"x": 200,
"y": -20.000000000000576
"x": 190,
"y": 0
},
"1": {
"data": {
Expand All @@ -155,8 +155,8 @@
"id": "1",
"type": "end",
"warnings": {},
"x": 180,
"y": 1800
"x": 190,
"y": 1772
},
"10": {
"data": {
Expand All @@ -183,7 +183,7 @@
"type": "format",
"warnings": {},
"x": 340,
"y": 1080
"y": 1064
},
"12": {
"data": {
Expand Down Expand Up @@ -217,13 +217,7 @@
"nestedNodeChildren": [],
"nestedNodeParent": null,
"parameters": {
"fields": {
"functionId": 2,
"parameters": [
"local_string_uri_decode:custom_function_result.data.decoded_string"
],
"template": "{0}\n"
},
"fields": "local_string_uri_decode:custom_function_result.data.decoded_string",
"id": "playbook_input:snow_incident",
"table": "incident"
},
Expand Down Expand Up @@ -299,7 +293,7 @@
"type": "utility",
"warnings": {},
"x": 0,
"y": 1220
"y": 1256
},
"16": {
"data": {
Expand Down Expand Up @@ -361,7 +355,7 @@
"type": "utility",
"warnings": {},
"x": 0,
"y": 1340
"y": 1418
},
"17": {
"data": {
Expand Down Expand Up @@ -419,8 +413,8 @@
"id": "17",
"type": "utility",
"warnings": {},
"x": 360,
"y": 1280
"x": 340,
"y": 1256
},
"18": {
"data": {
Expand Down Expand Up @@ -481,8 +475,8 @@
"id": "18",
"type": "utility",
"warnings": {},
"x": 360,
"y": 1420
"x": 340,
"y": 1425
},
"2": {
"data": {
Expand All @@ -508,8 +502,8 @@
"id": "2",
"type": "format",
"warnings": {},
"x": 1.4210854715202004e-14,
"y": 320
"x": 0,
"y": 328
},
"3": {
"data": {
Expand Down Expand Up @@ -554,7 +548,7 @@
"id": "3",
"type": "action",
"warnings": {},
"x": 1.4210854715202004e-14,
"x": 0,
"y": 520
},
"4": {
Expand Down Expand Up @@ -588,8 +582,8 @@
"type": "format",
"userCode": null,
"warnings": {},
"x": -19.999999999999986,
"y": 700
"x": 0,
"y": 696
},
"5": {
"data": {
Expand Down Expand Up @@ -626,8 +620,8 @@
"id": "5",
"type": "prompt",
"warnings": {},
"x": 1.4210854715202004e-14,
"y": 880
"x": 0,
"y": 872
},
"6": {
"data": {
Expand All @@ -652,7 +646,7 @@
"type": "format",
"warnings": {},
"x": 0,
"y": 1080
"y": 1064
},
"8": {
"data": {
Expand Down Expand Up @@ -684,13 +678,7 @@
"pauseValue": 2
},
"parameters": {
"fields": {
"functionId": 1,
"parameters": [
"manual_input_string_uri_decode:custom_function_result.data.decoded_string"
],
"template": "{0}\n"
},
"fields": "manual_input_string_uri_decode:custom_function_result.data.decoded_string",
"id": "input_snow_incident:action_result.summary.responses.0",
"table": "incident"
},
Expand Down Expand Up @@ -761,8 +749,8 @@
"id": "9",
"type": "decision",
"warnings": {},
"x": 260,
"y": 140
"x": 250,
"y": 148
}
},
"notes": "This is an input playbook that is designed to be added to a larger automation playbook you have that does initial triage of a detection.",
Expand Down Expand Up @@ -800,7 +788,7 @@
"schema": "5.0.22",
"version": "7.0.0.190"
},
"create_time": "2025-09-30T16:22:11.257291+00:00",
"create_time": "2025-10-15T20:07:49.609160+00:00",
"draft_mode": false,
"labels": [
"*"
Expand Down
Binary file modified ServiceNow_Update_Incident.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 2 additions & 16 deletions ServiceNow_Update_Incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,6 @@ def manual_input_update_servicenow_incident(action=None, success=None, container

# phantom.debug('Action: {0} {1}'.format(action['name'], ('SUCCEEDED' if success else 'FAILED')))

fields_formatted_string = phantom.format(
container=container,
template="""{0}\n""",
parameters=[
"manual_input_string_uri_decode:custom_function_result.data.decoded_string"
])

################################################################################
# This will input the note that was configured to be sent from parent playbook
# in the start block to the Service Now Incident.
Expand All @@ -229,7 +222,7 @@ def manual_input_update_servicenow_incident(action=None, success=None, container
parameters.append({
"id": input_snow_incident_result_item[0],
"table": "incident",
"fields": fields_formatted_string,
"fields": manual_input_string_uri_decode__result_item[0],
"context": {'artifact_id': input_snow_incident_result_item[1]},
})

Expand Down Expand Up @@ -318,13 +311,6 @@ def local_update_servicenow_incident(action=None, success=None, container=None,

# phantom.debug('Action: {0} {1}'.format(action['name'], ('SUCCEEDED' if success else 'FAILED')))

fields_formatted_string = phantom.format(
container=container,
template="""{0}\n""",
parameters=[
"local_string_uri_decode:custom_function_result.data.decoded_string"
])

################################################################################
# This will input the note that was configured to be sent from parent playbook
# in the start block to the Service Now Incident.
Expand All @@ -342,7 +328,7 @@ def local_update_servicenow_incident(action=None, success=None, container=None,
parameters.append({
"id": playbook_input_snow_incident_item[0],
"table": "incident",
"fields": fields_formatted_string,
"fields": local_string_uri_decode__result_item[0],
})

################################################################################
Expand Down
Loading
Loading