We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a60bc commit 446b78aCopy full SHA for 446b78a
Server-Side Components/Background Scripts/Fetch P1 active records/P1 Incident which are Active
@@ -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