Auto assigning Tickets based on criteria

EricG2
Tera Guru

I've reviewed a lot of post on this subject and am still not getting it to work.

 

Here is the criteria I've set

EricG2_0-1795110144111.png

I've even attempted to use the Scrip portion only.

var currU = current.requested_for;

var isMem = new GlideRecord('sys_user_grmember');
isMem.addEncodedQuery('group.nameLIKEapple^group=d31ecd93472c1310e0bcbfaf016d43f8^user=='+currU);
isMem.query();

while(isMem.next() && current.short_description.indexOf('apple')>-1) {
gs.info("The assignment rule fired for "+currU.name);
current.assignment_group==''82c6cd61db792f007317323b7c961915";
}

 

Not sure why it's not appling or if workspaces is different.

 

Basically, I need the system to override the assignment group if:

1. 1 of 15 people call in an issue

2. the issue is regarding they apple device.

Then assign to group a, otherwise, the group taking the call or email.

Maybe a Business rule for Before or after insert?

 

thanks

0 REPLIES 0