Skip to content

Commit b7dc2da

Browse files
authored
Create script.js
This UI Action script sets current incident record as priority as Critical.
1 parent 01a30a8 commit b7dc2da

File tree

1 file changed

+9
-0
lines changed
  • UI Actions/Set Incident Priority Critical

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)