Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This ServiceNow **Client Script** automatically assigns the **Assignment Group** based on the selected **Category** on the Incident form.
It helps to route incidents to the right support teams quickly, improving efficiency and reducing manual errors.

Script Type
**Type:** onChange
**Applies to Table:** `incident`
**Field Name:** `category`
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function onChange(control, oldValue, newValue) {
if (newValue == 'hardware') {
g_form.setValue('assignment_group', 'Hardware Support');
} else if (newValue == 'software') {
g_form.setValue('assignment_group', 'Software Support');
} else if (newValue == 'network') {
g_form.setValue('assignment_group', 'Network Team');
} else {
g_form.clearValue('assignment_group');
}
}
Loading