Skip to content

Commit e24be9e

Browse files
authored
Update readme.md
1 parent 452b02e commit e24be9e

File tree

1 file changed

+21
-4
lines changed
  • Core ServiceNow APIs/GlideAggregate/Count All Open Incidents Per Priority

1 file changed

+21
-4
lines changed
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
We want to dynamically calculate the number of open incidents for each priority level (1 - Critical, 2 - High, 3 - Moderate, 4 - Low) using server-side scripting.
2-
Table: incident
3-
Field: priority, state
4-
This script uses **GlideAggregate** to count the number of **open incidents** per priority dynamically. Useful for dashboards, automated scripts, or business rules.
1+
# Count Open Incidents per Priority Using GlideAggregate
2+
3+
## Overview
4+
This script dynamically calculates the **number of open incidents** for each priority level using **server-side scripting** in ServiceNow.
5+
Priority levels typically include:
6+
+ 1 – Critical
7+
+ 2 – High
8+
+ 3 – Moderate
9+
+ 4 – Low
10+
11+
The solution leverages **GlideAggregate** to efficiently count records grouped by priority. This approach is useful for:
12+
+ Dashboards
13+
+ Automated scripts
14+
+ Business rules
15+
+ SLA monitoring and reporting
16+
17+
---
18+
19+
## Table and Fields
20+
+ **Table:** `incident`
21+
+ **Fields:** `priority`, `state`

0 commit comments

Comments
 (0)