Can you stop the auto search on sys_m2m_template (edit member)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 01:15 PM
When using the Edit for affected CIs on the change form the edit members automatically trys to search before a filter is put in. This can cause long load times. Can this be stopped? I would like the form to wait until the run filter button is used before searching.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 09:05 AM
Giving this a bump to see if any answers in the community before creating a case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 10:56 AM
Hi @StephenM
you can set a default filter using list control
better approach is to follow above
I have tried something
have a query BR on the cmdb_ci table with below script
(function executeRule(current, previous /*null when async*/ ) {
var uri = gs.action.getGlideURI();
var gr = new GlideRecord('change_request')
if (gr.get(uri.get("sysparm_collectionID")))//comment 5 and 6 lines if you want this to extend to incident problem etc.,
if (uri.toString().contains('sysparm_processor=M2MList') && (!uri.get('sysparm_chars') || uri.get('sysparm_chars') == '^') && uri.get('sys_target') == 'task_ci')
current.setLimit(0);
})(current, previous);
let me know what vendor comes up with if case is already raised
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya