Assign Task
assign_taskAssign a ServiceNow task record to a user and optionally update the assignment group. Supports incident, change_request, problem, sc_task, and other task-based tables.
Instructions
Assign a task record to a user and optionally an assignment group. Works on any task-based table (incident, change_request, problem, sc_task, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias to use. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| table | Yes | The table name of the task record (e.g., "incident", "change_request", "sc_task"). | |
| record_sys_id | Yes | The sys_id of the task record to assign. | |
| assigned_to | Yes | The sys_id or user_name of the user to assign the task to. | |
| assignment_group | No | The sys_id of the assignment group. Optional — if provided, the record's assignment_group field is also updated. |