- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2023 03:41 AM
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);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2023 06:52 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2023 06:52 AM
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?