- 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 06:34 AM
Here is the issue. When I'm on a TASK and change the Assignment Group the Assigned To still shows the name of current owner. I want that field to be blank. But on Incident it works correctly.
Thanks,
John

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2016 06:39 AM
When you refer to TASK, are you talking about a catalog task (sc_task table record)? If so, you will need to duplicate the onChange client script from incident to the other table. (onChange) Client scripts are designed to watch for changes on one field on one table. Incident and TASK (sc_task?) are two separate things to the platform so you will need two separate clients scripts. This should be as simple as opening the incident client script, changing the table accordingly, then do Insert (to create a new record.)