File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Server-Side Components/Background Scripts/ Bulk Change of Incident Priority Based on Category Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments