In Catalogue Builder, how do I auto assign a ticket to a group based on the requestor location

jaygash
Tera Contributor

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

swapnali ombale
Kilo Sage

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.