Skip to content

Commit 4919e83

Browse files
authored
Update script.js
Assigns incidents to groups based on category
1 parent 0908783 commit 4919e83

File tree

1 file changed

+18
-0
lines changed
  • Server-Side Components/Business Rules/Auto-Assign Incident Based on Keywords, CI, and Department

1 file changed

+18
-0
lines changed

Server-Side Components/Business Rules/Auto-Assign Incident Based on Keywords, CI, and Department/script.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@
2626
}
2727
}
2828

29+
(function execute(inputs, outputs) {
30+
var inc = new GlideRecord('incident');
31+
if (inc.get(inputs.incident_sys_id)) {
32+
switch(inc.category) {
33+
case 'Network':
34+
inc.assignment_group = 'Network Support';
35+
break;
36+
case 'Software':
37+
inc.assignment_group = 'Software Support';
38+
break;
39+
default:
40+
inc.assignment_group = 'Helpdesk';
41+
}
42+
inc.update();
43+
}
44+
})(inputs, outputs);
45+
46+
2947
// Department-based assignment
3048
if (current.caller_id) {
3149
var callerGR = new GlideRecord('sys_user');

0 commit comments

Comments
 (0)