- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 03:50 AM
Hi All,
Can someone help me with the logic / script to auto assign an incident to a user based on the assignment group ? ( Except Assignment Rules / lookup )
Thank you..
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 04:07 AM
Hi Karthik,
The system is currently using dependent fields. It defines assigned_to as being dependent on assignment_group. When you pick a group, the names in the assigned_to field are filtered down to members of that group.
There is no default assignment logic that happens. You CAN write your own scripts, but that's a high maintenance option. The best way is to manage the data using assignment rules. You mentioned that's an exception. Can you elaborate further on why you don't want to use them or what you are looking to do specifically?
http://wiki.servicenow.com/index.php?title=Defining_Assignment_Rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 04:02 AM
Hi Karthik,
You can do it through Onchange client scripts.
Thanks,
Devi
PS: Hit like, Helpful or Correct depending on the impact of the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 04:17 AM
Tried using the same.. but no luck

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 04:40 AM
I wouldn't use client scripts. It's going to involve doing GlideAjax calls which gets more complex than you'll need. If you can provide additional details of what you are trying to do, we can suggest options.
It still sounds like Assignment Rules are the way to go. If you are having issues with that, please let us know so we can fix it. Doing this via your own script is either going to lead to difficulty maintaining hard coded solutions over time, or re-inventing what assignment rules do. Both seem like a bad decision to me given the information at this point.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2016 04:19 AM
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View.
Thank you