Use this functionality to create a new change request in ServiceNow. The user must provide valid credentials (Basic authentication or OAuth authentication) and any of the other fields defined in the input table below.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Input fields
The following table lists the fields to use for create change request:
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. This is required for basic authentication and OAuth authentication. |
|
String |
Yes |
The password for authentication. This is required for basic authentication and OAuth 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 about the ticket for easy identification. |
|
String |
No |
Additional information about the ticket, if any. |
|
String |
No |
The criticality of the change request: normal or emergency. The default value is normal. |
|
String |
No |
The current status of the change request. |
|
String |
No |
The priority of the change request ticket. |
|
String |
No |
The risk involved in the ticket. |
|
String |
No |
The impact of the ticket. |
|
String |
No |
The ticket category. |
|
String |
No |
The type of change request initiated by the user. |
|
String |
No |
The assignment group to which the CR ticket 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. |
Usage example
The following is an example change request payload with mandatory fields for the create change request:
- name: ServiceNow Action with Basic Auth uses: cloudbees-io/service-now@v1 with: url: ${{ vars.SERVICENOW_URL }} username: "username" password: "password" action-type: "create" cr-type: "Normal|Emergency" short-description: "Title of the CR ticket"
A unique change request number and
|