Find Task by Number
find_taskFind a ServiceNow task record by its number to retrieve full details, check current state, or obtain sys_id before assignment or resolution.
Instructions
Find a task record by its number (e.g., "INC0010001", "CHG0030002"). Returns the full record if found, or a clear message if not. Use this to look up sys_ids, check current state, or retrieve task details before performing actions like assigning or resolving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | The table name to search in (e.g., "incident", "change_request", "problem", "sc_task"). | |
| number | Yes | The task number to find (e.g., "INC0010001", "CHG0030002", "PRB0040001"). | |
| 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. |