How to restrict retired CI's on incident form ?

swapnil15
Tera Contributor

If the field(operational status) on cmdb_ci form is retired then than that ci should not be visible on incident forms ci field ? Someone tell me how to do this.

1 ACCEPTED SOLUTION

Hi Swapnil,

please find screenshot below

I added this and it only shows CI which are not retired

when I apply filter as below

javascript: 'operational_status!=6'

find_real_file.png

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Chander Bhusha1
Tera Guru

Hi Swapnil,

You can update the  configuraation item field and right click and select configure dictionary  on the incident form.

1. Goto  the related list Dictionary overrides and create a new as shown below  (if any existing override in incident table is present then select that one) other wise create new.

find_real_file.png

 

2.  Select a table as incident  and check the overrride reference qualifier and put the script as javascript:'operational_status!=6'  save and check in the form of incident the retired ci will not be displayed in the list.

 

find_real_file.png

 

 

Please mark correct or helpful if it helps.

Thanks,

CB

You have it right CB but that wasn't my question.

Below I have written it in short and simple way :-

CI's with Retired devices option from configuration item table/form should not be available on incident forms cmdb_ci field.

 

Image 1 : when CI is retired on cmdb form

Image 2 : then that CI should not be available on incident form - cmdb_ci field.

 

Hi Swapnil,

The above solution is doing the same thing as it will restrict the configuration items which is in retired state to not shown in the configuration item field on the incident form.

The reference qualifier will restrict the entries to be shown when referring to another table.

Can you please provide more details on what is your actual requirement.

 

Please mark answer correct or helpful if it works.

 

Thanks,

CB

 

Hello CB,

I tried your method, thing is I didn't got retired devices in configuration field but along with that other devices are also not available. I can only see operational status devices in the field.