create_change_from_remediation_task
Creates a ServiceNow change from a Vulnerability Response remediation task, linking the task, vulnerable items, and affected CIs so task and change states stay in sync.
Instructions
Create a change for a Vulnerability Response remediation task (VUL...) the same way the "Create Change" action does (sn_vul.ChangeMgmt actionCreateChange): the change, its link to the task, the vulnerable item links and the affected CIs, so task and change states stay in sync. Requires WRITE_ENABLED=true and the server-side script runner
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"remediation_task": "<remediation_task>"
},
"name": "create_change_from_remediation_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add_cis | No | Add the affected CIs to the change (default true) | |
| end_date | No | Planned end, YYYY-MM-DD HH:MM:SS | |
| assigned_to | No | Assignee sys_id (default: the task's) | |
| change_type | No | Change type (default normal) | |
| justification | No | Justification (recommended for emergency changes) | |
| assignment_group | No | Assignment group sys_id (default: the task's) | |
| remediation_task | Yes | VUL number or sys_id of the remediation task (sn_vul_vulnerability) | |
| short_description | No | Change short description (default: the task's) | |
| implementation_plan | No | Implementation plan (default: the task's preferred solution) |