Use this functionality to create a new change request in ServiceNow. The user must provide:
-
Valid credentials (Basic authentication or OAuth authentication) and the ServiceNow host URL.
-
The create action type.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Inputs for the create change request functionality are listed below.
Change request model field | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The type of operation is "create". |
|
String |
Yes |
The ServiceNow host URL. |
|
String |
Yes |
The username for authentication. |
|
String |
Yes |
The password for authentication. |
|
String |
Required only for OAuth-based authentication. |
The unique identification number of the client. |
|
String |
Required only for OAuth-based authentication. |
The client secret for authentication. |
|
String |
No |
A short title for easy identification. |
|
String |
No |
Additional information about the change request ticket. |
|
String |
No |
The type of change request. The default value is "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. |
|
JSON string |
No |
Any additional parameters apart from the list provided above. Refer to the ServiceNow documentation for more information. |
Unique identifiers generated by ServiceNow
Unique cr-number
and sys_id
identifiers are generated by ServiceNow when the ticket is successfully created.
-
The
sys_id
is a unique 32-character identifier required to update or close the ticket. -
The
cr-number
is required to get the current state of a change request and to query a change request for approval.
Usage examples
The following is an example payload for creating a change request using basic authentication:
If your workflow uses a manual trigger, you can configure input parameters for the ServiceNow change request fields in the format ${{ inputs.MY_PARAMETER }}
, which can then be passed to the action inputs.
The following is an example payload for creating a change request using basic authentication and input parameters:
You can use the Workflow composer to configure input parameters for a manually triggered workflow, as in the example below. Figure 1. Editing parameters in a manually triggered workflow
|