Filter "Add" button on Affected CI related list in Workspace to show only Service Offering CIs

lidorz
Tera Contributor

 

Hi everyone,

I'm working in Service Operations Workspace, and I have a use case related to the Affected CI related list on the Problem record.

I would like to filter the list of CIs that appear when a user clicks the "Add" button in the related list (from the task_ci table).
Specifically, I want the user to only see CIs where the class is "Service Offering" (cmdb_ci.sys_class_name = service_offering).

I was able to filter the related list itself , but that does not affect the records shown in the Add modal popup.
It still shows all CI records, regardless of class.

How can I filter the Add selection list to only include Service Offering CIs in Workspace?

Thanks in advance for any help

lidorz_0-1751966939645.png

 

1 ACCEPTED SOLUTION

@lidorz 

the filter comes from Script Include "AssociateCItoTask" and function getURL()

this article explains well on how to change

update the filter on this line

Apply Filter to ADD Button on Impacted Services/CI RelatedList 

AnkurBawiskar_0-1751968398159.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@lidorz 

please share how did you add that "Add" button with complete steps

May be somewhere in that config you might have to tweak the filter.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

hii
this config is OOB UI ACTION

lidorz_0-1751967989644.png

 

@lidorz 

the filter comes from Script Include "AssociateCItoTask" and function getURL()

this article explains well on how to change

update the filter on this line

Apply Filter to ADD Button on Impacted Services/CI RelatedList 

AnkurBawiskar_0-1751968398159.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

it works! thank you so much