restrict all to assign incident to xyz assignment group . -Setup only abc can assign to xyz assignme
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 10:40 AM
I want to write a business rule to restrict all to assign incident to xyz assignment group .
-Setup only abc can assign to xyz assignment group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 03:04 AM
Hello @nikhithak80 ,
Whenever the assignment group is changed, we are looking which user updated the Incident.
If it was not abc, then abort the Incident.
Before Insert business rule
In the conditions,
Assignment group | changes
In the script, add
if (gs.getUserID() == '<sys_id of the user abc>'){
gs.addInfoMessage("You can assign to this group");
setAbortAction(true);
}
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 03:09 AM
so what script did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader