We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5fad12 commit 1f49bf7Copy full SHA for 1f49bf7
auto_assign_category.js
@@ -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
12
+ default:
13
+ inc.assignment_group = 'Helpdesk';
14
+ }
15
+ inc.update();
16
17
+})(inputs, outputs);
0 commit comments