Best way to disable Configuration Items

MBarrott
Mega Sage

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?

1 ACCEPTED SOLUTION

MBarrott
Mega Sage

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. 

View solution in original post

13 REPLIES 13

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?

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

amaradiswamy_0-1725894906325.png

 

 

Hi @amaradiswamy - I believe the ref. qualifier is OOB and I do see that record following the link in my instance. 

MBarrott
Mega Sage

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.