From 3ee74cc495f67c4d03a7aad3776e24f2ae9ea34a Mon Sep 17 00:00:00 2001 From: Thrizvi <145013431+Thrizvi@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:53:48 +0530 Subject: [PATCH] Create UpdateIncident.js Update Incident whose state is open so update the priority --- Background Scripts/Update Incident/UpdateIncident.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Background Scripts/Update Incident/UpdateIncident.js diff --git a/Background Scripts/Update Incident/UpdateIncident.js b/Background Scripts/Update Incident/UpdateIncident.js new file mode 100644 index 0000000000..a74e385615 --- /dev/null +++ b/Background Scripts/Update Incident/UpdateIncident.js @@ -0,0 +1,7 @@ +var gr = new GlideRecord('incident'); +gr.addQuery('state', '1'); +gr.query(); +while (gr.next()) { + gr.priority = '2'; + gr.update(); +}