Skip to content

Commit 95ca253

Browse files
authored
better README (#2234)
1 parent 639e1ba commit 95ca253

File tree

1 file changed

+19
-1
lines changed
  • Server-Side Components/Background Scripts/ Bulk Change of Incident Priority Based on Category

1 file changed

+19
-1
lines changed
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
The code helps to automates the bulk update of incident priorities based on predefined category mappings.
1+
# Bulk Change of Incident Priority Based on Category
2+
3+
A background script that updates incident priorities for active incidents based on predefined category-to-priority mappings.
4+
5+
## Usage
6+
7+
1. Navigate to **System Definition → Scripts - Background**
8+
2. Copy and paste the script content
9+
3. Modify the `priorityMapping` object with your category-to-priority rules
10+
4. Click "Run script"
11+
12+
## What It Does
13+
14+
The script:
15+
1. Defines a mapping between incident categories and priority levels (e.g., 'Network': 1)
16+
2. Queries all active incidents
17+
3. Checks each incident's category against the mapping
18+
4. Updates the incident priority if a match is found
19+
5. Logs each updated incident number and new priority

0 commit comments

Comments
 (0)