Incident Management Client Script that filters Business Service by Specific Groups

Scott Megargee
Tera Expert

My company has a use case for Incident Management that will set a default filter for business service by a specific set of groups when responding to/documenting an incident. The design I'm envisioning is a new system property to capture the sys id's of the 3 groups in question, a client callable script include to get the parameters for the business service (cmdb_ci_service support_group sys id is referenced in the property) and then an onLoad and onChange client script to add and set the filter parameter on the incident. 

 

Is this a bad idea? Is this a bad design? We require business service on all incidents and with the high volume of services we have the goal is to minimize the list of items that are returned to make it easier for agents to select the service in question. 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Scott Megargee 

you can store sysIds of those 3 groups in system property.

to ensure the filter works dynamically you need to use advanced ref qualifier.

what's the purpose of onLoad and onChange?

you want to apply filter to business service field based on which other form field?

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

Yes, my plan is to store the sys_ids in the system property which is a standard we set for sn scripts. I'm not basing the applied filter on other form fields so likely just need the onLoad script. The requirement is an agent is not permitted to resolve an incident without selecting a business service. We want to just minimize the list of business services they are defaulted with. I guess my main question is whether or not this is a bad idea and if my proposed design makes sense.