- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 02:08 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 02:34 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 02:34 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 02:43 AM
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";
}
Hope this helps
Mark my answer correct if this helps you
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 02:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 02:47 AM
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