Assignment Group is not changing through Business Rule

N Afreen
Tera Contributor

Hi
The system does not allow to change the Assignment Group. It can be selected, when the ticket is Saved it seems like the system put the "Service Team" group back
Here is my Before insert/update BR

(function executeRule(current, previous /*null when async*/) {

// Add your code here
var gr_group = new GlideRecord('sys_user_group');
gr_group.addEncodedQuery('nameLIKEService team' );
gr_group.query();
if(gr_group.next()){
//

}
current.assignment_group = 'd0v6d4830faa5799d15605ffe1050ecc';


})(current, previous);

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

This Business Rule, assuming the script logic is correct, and depending on any Filter Conditions, will (always?) set the assignment group to the hard-coded sys_id, assuming there is a group name like Service team and the sys_id is for a valid group record.  What is happening, and what do you want to happen?

View solution in original post

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

This Business Rule, assuming the script logic is correct, and depending on any Filter Conditions, will (always?) set the assignment group to the hard-coded sys_id, assuming there is a group name like Service team and the sys_id is for a valid group record.  What is happening, and what do you want to happen?