If parent CI is retired, then child CI CI needs to be retired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2022 09:18 AM
Hello All,
I have below requirements:
When a discovered CI is Retired all components that were discovered on the CI should automatically be retired with the CI is Retired.
Any way to develop something that will look at all CIs and if parent CI is anything other than Install Status "Installed" then the child CIs are updated to Retired or to match the status of the parent CI.
Any help will be appreciated.
Regards,
Hanumant
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 12:29 AM
if Child CI is not shared with other parents then you can retire it.
I will go for a scheduled Job for this to retire all Child of a given Parent CI and remove corresponding relationships also from CMDB_REL_CI Table.
https://community.servicenow.com/community?id=community_question&sys_id=383fa25f1bb56010ed6c9979b04bcb0c
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 08:19 AM
Hi Rahul,
not sure how we check if child is related to multiple parents, but can you exaplin in what case it is good to have relations also removed.
Our current ask is to change status of child CIs.
Regards,
Hanumant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 08:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 02:24 AM
why would you recommendremoving CI relationships also from CMDB?
is it something to do with performance?
Regards,
Hanumant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 09:09 PM
It is something to do with unnecessary records when CI is retired then remove its links with all retired CIs.
Regards
RP