How to remove filter in Affected CI in SOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 12:17 PM
Hi everyone,
I'm working in Service Operations Workspace, and I have a use case related to the Affected CI related list on the change 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 see all CIs. I can be able to achieve this in default view by commenting out this line in "AssociateCIToTask" script include. i want this to be achieved in SOW as well.
//url.set("sysparm_fixed_query", principalClassFilter);
Thanks in advance for any help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2025 07:33 PM
Hi @SM123 ,
Good day !!
The filtering logic is probably being applied either via a client script or in the configuration of the related list in the workspace. Please try checking the script include or the code that sets the URL parameters. To show all CIs, you need to remove or comment out the line that sets the filter (sysparm_fixed_query).
Give it a try and let me know...
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2025 10:33 PM - edited 08-03-2025 10:34 PM
Hi @kaushal_snow ,
I have already commented (sysparm_fixed_query) out this line, but it isn't working in Service operational workspace. I couldn't understand the other suggestions you mentioned. Could you please explain what should i do?
Thank You