- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 07:40 AM
We have a series of configuration items that we would like to retire and remove them as selectable options.
I've modified the Install Status and Operational Status to 'Retired' but they are still showing up as usable options.
Is there a best practice to sunset these CI's?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 07:45 AM
Managed to fix this fairly easily:
- I noticed that the cmdb_ci field has a Dictionary Override records for incident, sc_task and change_request. All three of these were overiding the reference qualifier field for the cmdb_ci.
By default (OOTB) the Reference Qualifier field was: sys_class_name!=cmdb_ci_service
I modified this and added a condition to filter out CI's which have an Operational Status of '6', which is retired: operational_status!=6
Combining these I ended up with: operational_status!=6^sys_class_name!=cmdb_ci_service
This ensured that any retired CI's were omitted from the Configuration Item reference field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 06:11 AM
Hi @Brian Lancaster,
Having dug a little deeper I'm wondering if the reference qualifier could just be modified to limit the returned values?
The Configuration Item field has the following advanced reference qualifer:
javascript: ['incident', 'problem'].indexOf(current.sys_class_name + '') == -1? '' : 'operational_statusNOT IN' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join()
I would guess modifying the 'operational_statusNOT IN' to include retired would work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 08:15 AM
Hi @MBarrott
Did you check the reference qualifier for "Configuration Item" field on Incident table?
If you are using OOB reference qualifier, then you can go to the below link:
https://<yourinstancename>.service-now.com/statemgmt_not_allow_actions_list.do
The above table should have below record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 09:23 AM
Hi @amaradiswamy - I believe the ref. qualifier is OOB and I do see that record following the link in my instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 07:45 AM
Managed to fix this fairly easily:
- I noticed that the cmdb_ci field has a Dictionary Override records for incident, sc_task and change_request. All three of these were overiding the reference qualifier field for the cmdb_ci.
By default (OOTB) the Reference Qualifier field was: sys_class_name!=cmdb_ci_service
I modified this and added a condition to filter out CI's which have an Operational Status of '6', which is retired: operational_status!=6
Combining these I ended up with: operational_status!=6^sys_class_name!=cmdb_ci_service
This ensured that any retired CI's were omitted from the Configuration Item reference field.