From 58816aafef7038da87004a1e307b658b7b69ff12 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Oct 2025 14:18:09 -0700 Subject: [PATCH] better README --- .../README.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Server-Side Components/Background Scripts/ Bulk Change of Incident Priority Based on Category/README.md b/Server-Side Components/Background Scripts/ Bulk Change of Incident Priority Based on Category/README.md index 15f5861077..e3956070db 100644 --- a/Server-Side Components/Background Scripts/ Bulk Change of Incident Priority Based on Category/README.md +++ b/Server-Side Components/Background Scripts/ Bulk Change of Incident Priority Based on Category/README.md @@ -1 +1,19 @@ -The code helps to automates the bulk update of incident priorities based on predefined category mappings. +# Bulk Change of Incident Priority Based on Category + +A background script that updates incident priorities for active incidents based on predefined category-to-priority mappings. + +## Usage + +1. Navigate to **System Definition → Scripts - Background** +2. Copy and paste the script content +3. Modify the `priorityMapping` object with your category-to-priority rules +4. Click "Run script" + +## What It Does + +The script: +1. Defines a mapping between incident categories and priority levels (e.g., 'Network': 1) +2. Queries all active incidents +3. Checks each incident's category against the mapping +4. Updates the incident priority if a match is found +5. Logs each updated incident number and new priority \ No newline at end of file