Related Items Downstream and Upstream CI Relationship Supression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2023 04:21 AM
Is there a method to hide or remove items in the Related Items downstream/upstream view of a CI? For example, I have a Business Service class that Depends on a Server but, that server operational state is "Retired", How do I get that removed from the Downstream relationships? If I create a BR that removes the cmdb_rel_ci records for any parent or child record that contains "serverxyz", how do I get them back if that Operational State flips back to Operational? As in maybe someone made that state change in error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 11:54 AM
Hi,
No, the only way is to remove the record in the cmdb_rel_ci table. The Audit history contains some information that can help you revert it if you reactive. If you look at the history of a CI that you have removed a relationship for you should have a history line looking something like this.
With that information it should be possible to restore. Look for the line where status changed to retire and fetch all removed relationships after that time stamp.
Another solution would be to capture the relationships in a custom table at the time when it was retired.
Regards,
Niklas