Replies: 3 comments 14 replies
-
Hello, assignment of multiple CIs to RFC is probably not achievable with this module in single request. This module generally calls table client and writes/updates/deletes a single table entry on servicenow side. The change request to CI relation is actually also a table so you have to relate each CI you want to relate in a loop. I use something like this in a loop:
The SNOW API does not seem to have multiple CI relation as well. However, SNOW API can be enhanced on the SNOW side with custom processors (eg. this thread) but then it will be no longer a table client and it will not be possible to reach it via servicenow.itsm module. You would have to use some URL module and setup everything yourself (SNOW host, SNOW headers, SNOW credentials,...). As for the Change Request primary ci (cmdb_ci) - this is NOT entered in task_ci relation table. It is simple attribute of the Change Request. In some cases you don't care but in some cases you do. For example if you plan dynamically adjust CI relations and you want to remove CIs from the Change Request, it may happen that you want to remove primary CI. The things can get complicated in this case. You would need to unrelate some other CI from the Change Request and use it to replace primary cmdb_ci. I decided to use only generic CIs in the primary CI field (cmdb_ci) to avoid these hassles. Please, let me know if you still need more details. |
Beta Was this translation helpful? Give feedback.
-
I am experiencing this exact same issue. I have raised a Redhat ticket internally and will report back with my findings. I can deploy affected ci's via ansible but not impacted ci's. You can also deploy affected CI's as below with the change request module but again impacted ci's do not work.
Also if you right click on the item and open in new window within servicenow you can verify the field it's using within the URL. I also need to create a risk assessment and can't find a way of doing that either. |
Beta Was this translation helpful? Give feedback.
-
Anyone had any joy with running a conflict check from the servicenow.itsm.api? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been poking at a ServiceNow instance with Ansible attempting to figure out how I can add multiple (or additional) affected or impacted configuration items of a change_request.
I realize that
cmdb_ci
is the primary configuration item, based on my testing withservicenow.itsm.change_request
.What about the Affected CIs and also Impacted Services/CIs (terms from the ServiceNow webui)?
https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/task/t_CreateAChange.html
https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/concept/c_AffectedCIsAndImpactedServices.html
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions