Affected CIs default filter on Change Request for ADD button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2018 01:28 PM
Hi, i had a quick question to be answered. please help me.
on change request we have ADD button to add "Affected CIs". When user click on ADD we are by default letting him to select only the CIs which are set "Monitor = True". you can see in the below screen shots.
But the user is able to modify the filter entirely changing it to Monitor=false or something else he wants. Requirement is we do not want the user to modify this default filter or we only want to display the CIs which are set "Monitor=True" irrespective of what CLASS the user choose.
Is there a way we can develop this by default to show only the CIs that are Monitor=True when user click on ADD? without any default filter?
1) user clicks on ADD
2) Now "Add affected configuraiton Items dailog window appears with default filter that we setup
3) You can see in the below screen shot how we setup that filter modifying script include
thanks,
sry

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2018 01:38 PM
You can probably use something like this to set your default filter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2018 02:04 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2018 04:55 AM
shouldn't it be url.set('&sysparm_fixed_query=monitor=true').
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2018 06:14 AM
Hi Brian, i have used '&sysparm_fixed_query=monitor=true' but i am getting a blank screen. so its not working either.
below is the logice that is returning the URL for dialog window
var url = new GlideURL("task_add_affected_cis.do");
url.set("sysparm_crSysId", chgReqId);
url.set("sysparm_view", "associate_ci");
url.set("sysparm_add_to", addToTable);
url.set("sysparm_stack", "no");
url.set("sysparm_table", latestClassAdded);
url.set("sysparm_parent_class", parentClass);
url.set("&sysparm_fixed_query=monitor=true");
return url;
thanks,
sry