From 82179f1d5174f3d0eadef8413b8ea6482f40ab43 Mon Sep 17 00:00:00 2001 From: Varshitha Date: Thu, 23 Oct 2025 15:17:26 +0530 Subject: [PATCH] Update Auto Assign Incident.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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. --- .../AutoAssignment/Auto Assign Incident.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Server-Side Components/Business Rules/AutoAssignment/Auto Assign Incident.js b/Server-Side Components/Business Rules/AutoAssignment/Auto Assign Incident.js index 3b6dc63432..fd528b8227 100644 --- a/Server-Side Components/Business Rules/AutoAssignment/Auto Assign Incident.js +++ b/Server-Side Components/Business Rules/AutoAssignment/Auto Assign Incident.js @@ -10,3 +10,13 @@ } } })(current, previous); + +(function execute(inputs, outputs) { + var inc = new GlideRecord('incident'); + if (inc.get(inputs.incident_sys_id)) { + if (inc.priority == 1) inc.assignment_group = 'Network Support'; + else inc.assignment_group = 'Helpdesk'; + inc.update(); + } +})(inputs, outputs); +