Skip to content

Commit 1f49bf7

Browse files
authored
Create auto_assign_category.js
Add auto-assign incident by category script
1 parent e5fad12 commit 1f49bf7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

auto_assign_category.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Auto-assign incident to groups based on category
2+
(function execute(inputs, outputs) {
3+
var inc = new GlideRecord('incident');
4+
if (inc.get(inputs.incident_sys_id)) {
5+
switch(inc.category) {
6+
case 'Network':
7+
inc.assignment_group = 'Network Support';
8+
break;
9+
case 'Software':
10+
inc.assignment_group = 'Software Support';
11+
break;
12+
default:
13+
inc.assignment_group = 'Helpdesk';
14+
}
15+
inc.update();
16+
}
17+
})(inputs, outputs);

0 commit comments

Comments
 (0)