Skip to content

Commit 82179f1

Browse files
authored
Update Auto Assign Incident.js
# Auto Assign by Priority This Business Rule automatically assigns incidents to groups based on their priority. - Priority 1 → Network Support - Priority 2,3,4 → Helpdesk Useful for automating incident routing and reducing manual work.
1 parent 0da4fa8 commit 82179f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Server-Side Components/Business Rules/AutoAssignment/Auto Assign Incident.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@
1010
}
1111
}
1212
})(current, previous);
13+
14+
(function execute(inputs, outputs) {
15+
var inc = new GlideRecord('incident');
16+
if (inc.get(inputs.incident_sys_id)) {
17+
if (inc.priority == 1) inc.assignment_group = 'Network Support';
18+
else inc.assignment_group = 'Helpdesk';
19+
inc.update();
20+
}
21+
})(inputs, outputs);
22+

0 commit comments

Comments
 (0)