ServiceNow actions in CloudBees Unify provide programmatic access to change request management operations through four distinct action types. Use this reference when configuring ServiceNow integrations, setting up workflow parameters, or troubleshooting action configurations.
Action types
ServiceNow integration supports four action types for change request lifecycle management. Each action requires specific input parameters and produces defined outputs for workflow integration.
-
create: Creates new ServiceNow change requests with configurable properties and optional blackout window validation
-
get: Retrieves current state and conflict status of existing change requests
-
update: Modifies existing change request properties or closes change requests with completion codes
-
poll-for-approval: Continuously monitors change request approval status with configurable polling intervals
Authentication requirements
All ServiceNow actions require authentication credentials and ServiceNow host URL. Two authentication methods are supported with different parameter requirements.
- Basic authentication
-
Required parameters:
username,password. Uses ServiceNow user account credentials for API access. - OAuth authentication
-
Required parameters:
username,password,client-id,client-secret. Provides OAuth-based authentication with client credentials for enhanced security.
Create change request action
The create action generates new ServiceNow change requests with specified properties and optional blackout window conflict validation.
Input parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
|
String |
Yes |
The operation type must be "create" |
|
String |
Yes |
The ServiceNow host URL |
|
String |
Yes |
The username used for authentication |
|
String |
Yes |
The password used for authentication |
|
String |
OAuth only |
The unique identification number of the client |
|
String |
OAuth only |
The client secret used for authentication |
|
String |
No |
A brief title to identify the change request |
|
String |
No |
Additional information about the change request ticket |
|
String |
No |
The type of change request. Default: "normal" |
|
String |
No |
The current status of the change request |
|
String |
No |
The priority of the change request |
|
String |
No |
The risk involved in the change request |
|
String |
No |
The impact of the change request |
|
String |
No |
The change request ticket category |
|
String |
No |
The user that requested the change |
|
String |
No |
The assignment group to which the change request must be mapped |
|
String |
No |
The user to whom the change request ticket must be assigned in the assignment group |
|
Boolean |
No |
Whether to check if there is a blackout window conflict. Default: false |
|
String |
If blackout validation enabled |
The scheduled start date and time of the change request, formatted as |
|
String |
If blackout validation enabled |
The scheduled end date and time of the change request, formatted as |
|
JSON string |
No |
Any additional parameters apart from the list provided above |
Get change request action
The get action retrieves the current state and conflict status of existing ServiceNow change requests.
Input parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
|
String |
Yes |
The type of operation must be "get" |
|
String |
Yes |
The ServiceNow host URL |
|
String |
Yes |
The username used for authentication |
|
String |
Yes |
The password used for authentication |
|
String |
OAuth only |
The unique identification number of the client |
|
String |
OAuth only |
The client secret used for authentication |
|
String |
Yes |
The unique number auto-generated during change request creation |
Update change request action
The update action modifies existing change request properties or closes change requests with completion codes and notes.
Input parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
|
String |
Yes |
The type of operation must be "update" for both updating and closing a change request |
|
String |
Yes |
The ServiceNow host URL |
|
String |
Yes |
The username used for authentication |
|
String |
Yes |
The password used for authentication |
|
String |
OAuth only |
The unique identification number of the client |
|
String |
OAuth only |
The client secret used for authentication |
|
String |
Yes |
The identifier auto-generated during change request creation |
|
String |
Close operation only |
The code assigned to the change request by the user closing it. Required if configured as mandatory in ServiceNow |
|
String |
Close operation only |
The notes entered by the user closing the change request. Required if configured as mandatory in ServiceNow |
|
String |
No |
A short title for easy identification |
|
String |
No |
Additional information about the change request ticket |
|
String |
No |
The type of change request. Default: "normal" |
|
String |
No |
The current status of the change request (matches the ServiceNow configuration) |
|
String |
No |
The priority of the change request |
|
String |
No |
The risk involved in the change request |
|
String |
No |
The impact of the change request |
|
String |
No |
The change request ticket category |
|
String |
No |
The user that requested the change |
|
String |
No |
The assignment group to which the change request must be mapped |
|
String |
No |
The user to whom the change request ticket must be assigned in the assignment group |
|
JSON string |
No |
Any additional parameters apart from the list provided above |
Poll for approval action
The poll for approval action continuously monitors change request approval status with configurable polling intervals and timeout constraints.
Input parameters
| Parameter | Data type | Required | Description |
|---|---|---|---|
|
String |
Yes |
The ServiceNow host URL |
|
String |
Yes |
The username used for authentication |
|
String |
Yes |
The password used for authentication |
|
String |
OAuth only |
The unique identification number of the client |
|
String |
OAuth only |
The client secret used for authentication |
|
String |
Yes |
The unique number auto-generated during change request creation |
|
String |
No |
The polling interval, in minutes, for the action to periodically check the approval status in ServiceNow. Default: 3, Maximum: 5760 minutes |
|
String |
No |
The maximum time duration, in minutes, for the action to continue polling for approval status in ServiceNow. Default: 60, Maximum: 5760 minutes |
|
String |
Conditional |
The value of the state field in ServiceNow. Required if approval field values are not specified. Action continues polling until state field matches this value |
|
String |
Conditional |
The value of the approval field in ServiceNow that indicates the change request is approved. Required if |
|
String |
Conditional |
The value of the approval field in ServiceNow that indicates the change request is rejected. Required if |
Output parameters
| Parameter | Data type | Description |
|---|---|---|
|
String |
The unique change request number auto-generated during change request creation |
|
String |
The identifier auto-generated during change request creation |
|
String |
The value of the approval field in ServiceNow |
|
String |
The current status of the change request |
Workflow integration patterns
ServiceNow actions support parameter referencing between workflow steps for seamless change request lifecycle management. Output parameters from previous steps can be referenced as inputs in subsequent steps.
- Cross-action parameter references
-
Use
sys_idoutput from create action as input for update operations. Usenumberoutput from create action as input for get and poll operations. Reference outputs using${{ fromJSON(steps.STEP_ID.outputs.servicenow_output).PARAMETER }}syntax. - Blackout window validation
-
Enable validation using
validate-blackout-window-conflict: true. Requires bothplanned-start-dateandplanned-end-dateparameters. Action fails if blackout window conflict detected during specified timeframe. Date format:yyyy-mm-dd hh:mm:ss(evaluated in UTC or ServiceNow-configured timezone). - Polling behavior constraints
-
Poll interval range: 1-5760 minutes (default: 3 minutes). Poll duration range: 1-5760 minutes (default: 60 minutes). Action requires at least one polling condition: state field value OR approval field values. Polling continues until specified condition met or duration timeout reached.