This module is part of the servicenow.itsm collection (version 2.8.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install servicenow.itsm
.
To use it in a playbook, specify: servicenow.itsm.change_request_task_info
.
New in servicenow.itsm 1.3.0
- Retrieve information about ServiceNow change request tasks.
- For more information, refer to the ServiceNow change management documentation at https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/concept/c_ITILChangeManagement.html.
Parameter |
Comments |
|
---|---|---|
change_request_task_mapping dictionary added in servicenow.itsm 1.3.0 |
User mapping for Change request task object, where user can override Choice Lists values for objects. |
|
state dictionary |
The state of the change request task. Cannot be changed to |
|
instance dictionary |
ServiceNow instance information. |
|
access_token string added in servicenow.itsm 2.3.0 |
Access token obtained via OAuth authentication. If not set, the value of the |
|
api_path string added in servicenow.itsm 2.4.0 |
Change the API endpoint of SNOW instance from default 'api/now'. Default: |
|
client_id string |
ID of the client application used for OAuth authentication. If not set, the value of the If provided, it requires client_secret. |
|
client_secret string |
Secret associated with client_id. Used for OAuth authentication. If not set, the value of the If provided, it requires client_id. |
|
custom_headers dictionary added in servicenow.itsm 2.4.0 |
A dictionary containing any extra headers which will be passed with the request. |
|
grant_type string added in servicenow.itsm 1.1.0 |
Grant type used for OAuth authentication. If not set, the value of the Since version 2.3.0, it no longer has a default value in the argument specifications. If not set by any means, the default value (that is, password) will be set internally to preserve backwards compatibility. Choices:
|
|
host string / required |
The ServiceNow host name. If not set, the value of the |
|
password string |
Password used for authentication. If not set, the value of the Required when using basic authentication or when grant_type=password. |
|
refresh_token string added in servicenow.itsm 1.1.0 |
Refresh token used for OAuth authentication. If not set, the value of the Required when grant_type=refresh_token. |
|
timeout float |
Timeout in seconds for the connection with the ServiceNow instance. If not set, the value of the |
|
username string |
Username used for authentication. If not set, the value of the Required when using basic authentication or when grant_type=password. |
|
validate_certs boolean added in servicenow.itsm 2.3.0 |
If host's certificate is validated or not. Choices:
|
|
number string |
Number of the record to retrieve. Note that contrary to sys_id, number may not uniquely identify a record. |
|
query list / elements=dictionary |
Provides a set of operators for use with filters, condition builders, and encoded queries. The data type of a field determines what operators are available for it. Refer to the ServiceNow Available Filters Queries documentation at https://docs.servicenow.com/bundle/tokyo-platform-user-interface/page/use/common-ui-elements/reference/r_OpAvailableFiltersQueries.html. Mutually exclusive with |
|
sys_id string |
Unique identifier of the record to retrieve. |
|
sysparm_display_value string added in servicenow.itsm 2.0.0 |
Return field display values Choices:
|
|
sysparm_query string added in servicenow.itsm 2.0.0 |
An encoded query string used to filter the results as an alternative to Refer to the ServiceNow Available Filters Queries documentation at https://docs.servicenow.com/bundle/tokyo-platform-user-interface/page/use/common-ui-elements/reference/r_OpAvailableFiltersQueries.html. If not set, the value of the Mutually exclusive with |
servicenow.itsm.change_request_task
Manage ServiceNow change request tasks.
- name: Retrieve all change request tasks
servicenow.itsm.change_request_task_info:
register: result
- name: Retrieve a specific change request task by its sys_id
servicenow.itsm.change_request_task_info:
sys_id: 471bfbc7a9fe198101e77a3e10e5d47f
register: result
- name: Retrieve change request tasks by number
servicenow.itsm.change_request_task_info:
number: CTASK0000001
register: result
- name: Retrieve change request tasks that contain SAP in their short description by using field query
servicenow.itsm.change_request_task_info:
query:
- short_description: LIKE SAP
register: result
- name: Retrieve change request tasks that contain SAP in their short description by using field sysparm-query
servicenow.itsm.change_request_task_info:
sysparm_query: short_descriptionLIKESAP
register: result
- name: Retrieve new change requests assigned to abel.tuter or bertie.luby
servicenow.itsm.change_request_task_info:
query:
- state: = new
assigned_to: = abel.tuter
- state: = new
assigned_to: = bertie.luby
The following are the fields unique to this module:
- Matej Pevec (@mysteriouswolf)
- Manca Bizjak (@mancabizjak)
- Miha Dolinar (@mdolin)
- Tadej Borovsak (@tadeboro)