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 01a30a8 commit b7dc2daCopy full SHA for b7dc2da
UI Actions/Set Incident Priority Critical/script.js
@@ -0,0 +1,9 @@
1
+// Call this function from OnClick field of UI Action form
2
+function ClientSideScript() {
3
+ var answer = confirm("Are you sure you want to set priority as Critical?");
4
+ if (answer == true) {
5
+ g_form.setValue('assigned_to', g_user.userID);
6
+ g_form.setValue('impact', 1);
7
+ g_form.setValue('urgency', 1);
8
+ g_form.setValue('description', g_form.getValue('description') + "\nPriority is set to Critical by " + g_user.getFullName());
9
+ }
0 commit comments