We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff05f8c commit c247bbeCopy full SHA for c247bbe
Server-Side Components/Background Scripts/Get Orphan Incidents/get_orphan_incidents.js
@@ -0,0 +1,9 @@
1
+var gr = new GlideRecord('incident');
2
+gr.addNullQuery('assigned_to');
3
+gr.addNullQuery('assignment_group');
4
+gr.addQuery('state', '!=', 7); // not closed
5
+gr.query();
6
+gs.info("Orphaned incidents count:"+gr.getRowCount());
7
+while (gr.next()) {
8
+ gs.info('Orphaned incident: ' + gr.number + ' - ' + gr.short_description);
9
+}
0 commit comments