From 4919e834e0a33ef0a460d744515971c1f214e929 Mon Sep 17 00:00:00 2001 From: Varshitha Date: Wed, 22 Oct 2025 23:49:56 +0530 Subject: [PATCH] Update script.js Assigns incidents to groups based on category --- .../script.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Server-Side Components/Business Rules/Auto-Assign Incident Based on Keywords, CI, and Department/script.js b/Server-Side Components/Business Rules/Auto-Assign Incident Based on Keywords, CI, and Department/script.js index 339435289b..84a034f74b 100644 --- a/Server-Side Components/Business Rules/Auto-Assign Incident Based on Keywords, CI, and Department/script.js +++ b/Server-Side Components/Business Rules/Auto-Assign Incident Based on Keywords, CI, and Department/script.js @@ -26,6 +26,24 @@ } } + (function execute(inputs, outputs) { + var inc = new GlideRecord('incident'); + if (inc.get(inputs.incident_sys_id)) { + switch(inc.category) { + case 'Network': + inc.assignment_group = 'Network Support'; + break; + case 'Software': + inc.assignment_group = 'Software Support'; + break; + default: + inc.assignment_group = 'Helpdesk'; + } + inc.update(); + } +})(inputs, outputs); + + // Department-based assignment if (current.caller_id) { var callerGR = new GlideRecord('sys_user');