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 used for authentication. | 
| 
 | String | Yes | The password used 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 used for authentication. | 
| 
 | String | Yes | The type of operation must be "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. | 
Outputs
Outputs for the update change request functionality are listed below.
| Change request model field | Data type | Description | 
|---|---|---|
| 
 | String | The identifier used for change request updates. | 
| 
 | String | The current status of the change request. | 
Usage examples: Update a change request
The following is an example payload for updating a change request using basic authentication:
The following is an example payload referring to the output parameter sys_id from the change request creation step as input in the update step:
Usage examples: Close a change request
The following is an example payload for closing a change request:
The following is an example payload referring to the output parameter sys_id from the change request creation step as input in the close step:
| For information about using input parameters in a manually triggered workflow, refer to the Create change request usage example. |