ServiceNow
Synopsis
Creates and updates incidents in ServiceNow using the Table API, supporting incident tracking via problem IDs, automatic state management, and configurable impact/urgency levels for IT service management integration.
Schema
- servicenow:
instance_url: <string>
username: <string>
password: <string>
short_description: <string>
detailed_description: <string>
caller_id: <string>
category: <string>
subcategory: <string>
company: <string>
assignment_group: <string>
assigned_to: <string>
impact: <string>
urgency: <string>
state: <string>
problem_id: <string>
cmdb_ci: <string>
close_notes: <string>
close_code: <string>
auto_close: <boolean>
description: <text>
if: <script>
ignore_failure: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
| Field | Required | Default | Description |
|---|---|---|---|
instance_url | Y | - | ServiceNow instance URL or name (e.g., myinstance or myinstance.service-now.com) |
username | N | ${SERVICENOW_USERNAME} | ServiceNow username |
password | N | ${SERVICENOW_PASSWORD} | ServiceNow password |
short_description | Y | - | Brief incident description (title) |
detailed_description | N | - | Full incident description with details |
caller_id | N | - | Sys_id or name of the user reporting the incident |
category | N | - | Incident category |
subcategory | N | - | Incident subcategory |
company | N | - | Company associated with the incident |
assignment_group | N | - | Group to assign the incident to |
assigned_to | N | - | Individual to assign the incident to |
impact | N | low | Business impact: high, medium, or low |
urgency | N | low | How quickly resolution is needed: high, medium, or low |
state | N | new | Incident state: new, in_progress, on_hold, resolved, or closed |
problem_id | N | - | Unique identifier for tracking related incidents |
cmdb_ci | N | - | Configuration Item from CMDB |
close_notes | N | Closed automatically | Notes when closing incident |
close_code | N | Closed/Resolved by Caller | Resolution code when closing |
auto_close | N | false | Automatically set close fields when state is closed |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The servicenow processor creates and updates incidents in ServiceNow using the Table API.
Instance URL: Accepts either a full URL (https://myinstance.service-now.com) or just the instance name (myinstance). The processor automatically constructs the full URL when only the instance name is provided.
Incident Tracking: The problem_id field enables incident correlation. When set, the processor searches for existing open incidents with the same problem_id:
- If found: Updates the existing incident
- If not found: Creates a new incident
State Management: Control incident lifecycle through the state field:
new: Newly created incident (default)in_progress: Work has startedon_hold: Waiting for external actionresolved: Issue fixed, awaiting verificationclosed: Incident completed
Impact and Urgency: These fields combine to determine incident priority:
highorcritical: Value 1 in ServiceNowmedium: Value 2low: Value 3 (default)
Auto Close: When auto_close: true and state is closed, the processor automatically populates close_notes and close_code fields if not explicitly set.
Template Support: All string fields support Go template syntax with event field interpolation using {{ .field_name }}.
For integration patterns with schema validation, see Schema Drift Detection.
Examples
Create Incident
Creating a new ServiceNow incident... | |
High-priority incident created in ServiceNow... |
Update Existing Incident
Updating an incident with the same problem_id... | |
Existing incident updated to resolved state... |
Template Processing
Using templates for dynamic incident details... | |
Incident created with templated values from event data... |
Schema Drift Alert
Creating incidents when schema validation fails... | |
ServiceNow incident created when schema drift is detected... |
With Assignment
Assigning incident to specific group and individual... | |
Incident routed to Database Team for investigation... |