Auto assignment of Catalog task based on user location

Abhishek_Chavan
Tera Expert

We are currently trying to assign catalog tasks based on user location. e.g. if a task is created it should be assigned to the local help desk of the user based on their location. Assigned to NY desk for user based out of NY.

 

This should apply for catalog tasks created from Catalog item.

 

I was wondering what is the best practice to implement this configuration. 

1 ACCEPTED SOLUTION

manducchau
Mega Guru

Using sysrule_assignment (Assignment under Left Hand Menu) to specify your conditions. This would help you centralize all assignment rules in one place, instead of spreading across different workflows or flows.

View solution in original post

6 REPLIES 6

manducchau
Mega Guru

Using sysrule_assignment (Assignment under Left Hand Menu) to specify your conditions. This would help you centralize all assignment rules in one place, instead of spreading across different workflows or flows.

Mohith Devatte
Tera Sage
Tera Sage

Hello @Abhishek_Chavan ,

You can do this in the catalog task activity itself if you are using a  workflow using script like below 

Check the advanced check and you can try this script given below 

if(gs.getUser().getLocation() == "your_location_record_sys_id")
	{
		task.assignment_group = "your_assignment_group_sys_id";
		
	}

Screenshot 2022-11-28 at 16.11.21.png

 

Hope this helps 

Mark my answer correct if this helps you 

Thanks

Bhagesh chavan
Tera Contributor

You can use Assignment Rules (sysrule_assignment) and create a record for each location to the associated assignment group. This is OOB approach and will be easy to manage in the future if you end up with plenty of groups

 

Condition will be catalog task --> Requested Item --> Requested for --> Location

Screenshot 2022-11-28 at 11.41.03 AM.png

Akshay64
Tera Contributor

Hi Abhishek, you can achieve this using assignment rule. Assignment rule is easy to maintain and its OOB feature provided by servicenow

 

Regards,

Akshay Mhaske