Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Use Ansible to set multiple affected or impacted configuration items on a change_request

mjbear
Tera Contributor

I've been using Ansible with a PDI to test creation and manipulation of change_requests. I'm using the servicenow.itsm Ansible collection. https://github.com/ansible-collections/servicenow.itsm

 

While I can set a primary cmdb configuration item (cmdb_ci), I have not yet figured out how to add additional configuration items can be added in the ServiceNow webui within "Affected CIs" (and also "Impacted Services/CIs") section(s).

 

Guidance is appreciated.

Thoughts?

 

Note: I also have a discussion thread on github that has received no responses in two weeks now. Once I have a solution, I plan to post details on both places. https://github.com/ansible-collections/servicenow.itsm/discussions/246

 

Thank you

-M

1 REPLY 1

mjbear
Tera Contributor

Update:

 

I received guidance from a helpful member of the ServiceNow community over on github. In order to add affected and impacted CIs it necessary to have a separate Ansible task that utilizes servicenow.itsm.api

 

Best,

-M