Skip to content

Commit 3ee74cc

Browse files
authored
Create UpdateIncident.js
Update Incident whose state is open so update the priority
1 parent 2b1a175 commit 3ee74cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var gr = new GlideRecord('incident');
2+
gr.addQuery('state', '1');
3+
gr.query();
4+
while (gr.next()) {
5+
gr.priority = '2';
6+
gr.update();
7+
}

0 commit comments

Comments
 (0)