Skip to content

Commit 446b78a

Browse files
authored
Create P1 Incident which are Active
To identify and list all high-priority incidents that are currently active, enabling quick review and escalation if needed
1 parent f9a60bc commit 446b78a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
var gr = new GlideRecord('incident');
3+
gr.addQuery('active', true);
4+
gr.addQuery('priority', 1); // P1
5+
gr.query();
6+
7+
var count = 0;
8+
while (gr.next()) {
9+
gs.info('Active P1 Incident: ' + gr.number + ' | Short Description: ' + gr.short_description);
10+
count++;
11+
}
12+
13+
gs.info('Total Active P1 Incidents Found: ' + count);

0 commit comments

Comments
 (0)