In Catalogue Builder, how do I auto assign a ticket to a group based on the requestor location
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 09:49 AM
I am new using ServiceNow. Need help on - In Catalogue Builder, how do I auto assign a ticket to a group based on the requestor location
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 12:01 PM - edited ‎03-25-2025 12:05 PM
Hi Jayesh
Create your assignment rule as
CatalogTask.request>requested_for>Location-- is L1-- Assignment group is AG1
OR
You can try using below business rule that runs before insert/update on sc_task table.
(function executeRule(current, previous /*null when async*/) {
var Location=current.request_item.request.requested_for.location;
if(Location=='sys_id_of_location1')
{
current.assignment_group='sys_id_of_Assignmentgroup1';
}
else if(Location=='sys_id_of_location2')
{
current.request_item.request.requested_for.location
}
current.update();
})(current, previous);
Please mark my response as correct and helpful if it helped solved your question.