Use this functionality to update or close an existing ServiceNow change request. The user must provide:
-
Valid credentials (Basic authentication or OAuth authentication) and the ServiceNow host URL.
-
The update action type.
-
The unique sys_id attribute returned by the change request response.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Inputs for the change request functionality are listed below.
Change request model field | Data type | Required | Description |
---|---|---|---|
|
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 |
Yes |
The type of operation is "update" for both updating and closing a change request. |
|
String |
Yes |
The identifier auto-generated during change request creation. |
|
String |
Required for the close operation only if configured as mandatory fields in ServiceNow for closing a ticket. |
The code assigned to the change request by the user closing it. For example, "successful", "successful with issues", or "unsuccessful". |
|
String |
Required for the close operation only if configured as mandatory fields in ServiceNow for closing a ticket. |
The notes entered by the user closing the change request. |
|
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 (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. Refer to the ServiceNow documentation for more information. |
Usage examples
The following is an example payload for updating a change request using basic authentication:
The following is an example payload for closing a change request:
For information about using input parameters in a manually triggered workflow, refer to the Create change request usage example. |