How to change the filter condition for below Affected CI related list?

kiran115
Tera Contributor

In the incident form, under the related list, when I open the "Affected CI" related list, it displays the records in a pop-up window. I would like to update the filter condition here because the current view includes records that have been retired. How can I modify the filter? I tried from my side, but this is somewhat different to update.

Screenshot 2025-05-16 164346.png

 

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

Hi @kiran115 ,

it's the script include AssociateCIToTask

 

ChaitanyaILCR_0-1747395195134.png

 

update the highlighted line

 

if you want that to be removable filter use this

ChaitanyaILCR_1-1747395364484.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

View solution in original post

4 REPLIES 4

LillianP
Kilo Contributor

Hello!

To update the Affected CI related list filter in ServiceNow, check if you can modify it directly in the list configuration. If not, try adjusting the sysparm_fixed_query parameter or filtering out retired CIs via the CMDB table status field. For advanced filtering, a Script Include like AssociateCIToTask

Chaitanya ILCR
Kilo Patron

Hi @kiran115 ,

it's the script include AssociateCIToTask

 

ChaitanyaILCR_0-1747395195134.png

 

update the highlighted line

 

if you want that to be removable filter use this

ChaitanyaILCR_1-1747395364484.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Thanks @Chaitanya ILCR, it worked.

Is there also a chance to find this for a workspace?