- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 05:56 AM
Is there any way to clear the "Assigned to:" when you change the "Assignment Group"?
I have seen a couple of times where for example the incident Assignment Group is set to Desktop Support — Houston and the assigned to is Joe, then I would set the incident Assignment Group to Desktop Architecture, hit save, and it would keep the Assigned to as Joe even though I am not in that group.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 05:59 AM
Hi John,
Use an onChange client script on the Assignment Group field something like this:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading)
return;
g_form.setValue('assigned_to', '');
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 05:59 AM
Hi John,
Use an onChange client script on the Assignment Group field something like this:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading)
return;
g_form.setValue('assigned_to', '');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 06:06 AM
Thanks Chuck for your response on this. Awesome once again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 06:16 AM
Chuck,
What about on a TASK? Can the Assigned To be empty if Assignment Group is change?
Thanks,
John

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 06:24 AM
I'm not sure I understand the question/issue so I'll see if I can cover all bases...
That's up to you where you want to apply this client script. Remember, client scripts are inherited unless you specify otherwise. If you create a client script on Task (task), it will be used by incident, problem, change, and all other tables that are extended from task.
If you want to make the assignment group mandatory, just tell it.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading)
return;
g_form.setValue('assigned_to', '');
g_form.setMandatory(assigned_to', true);
}