Based on service Assignment group should populate by using assignment rule.

srikavya kondet
Tera Contributor

When we raise a case ticket , based on service assignment group should populate. For this i have written a script.

 

var val = '';
var itSuppGrp = new GlideRecord('sys_user_group');
itSuppGrp.addQuery('name','IT Support');
itSuppGrp.query();
if(itSuppGrp.next()){
val =itSuppGrp.sys_id;
}
if (current.business_service.support_group == ""){
current.assignment_group = val;
}
else {
current.assignment_group = current.business_service.support_group;
}

 

This script is working fine but if service changes assignment group should also change. But it is not working. Please provide a ASSIGNMENT RULE script for this.

9 REPLIES 9

srikavya kondet
Tera Contributor

Hi Mark Manders, Thank you...

The solution is provided (by more than one person) and if you are having trouble to get it to work, please let us know what you have and what isn't working. The community is not a place to have people do your job for you.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

ersureshbe
Giga Sage
Giga Sage

Hi, Did you try with assignment lookup rules? Please find below.

ersureshbe_0-1729507763029.png

 

 

Regards,
Suresh.

Those won't work, because you would need to create one for every CI.  


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi, I have written onchange client script to clear the value of assignment group and assignment rule is working as usual. It is working fine now. Thanks for your suggestion.