Skip to content

Commit 768c37f

Browse files
Create 01Readme.md
1 parent 560ee07 commit 768c37f

File tree

1 file changed

+63
-0
lines changed
  • Client-Side Components/UI Actions/Set Incident Priority Critical

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Set Incident Priority to Critical — UI Action
2+
3+
This ServiceNow UI Action allows you to quickly mark an incident as Critical directly from the form. It’s designed to make urgent incidents stand out and ensures that key fields are updated in a consistent way.
4+
5+
Purpose / Use Case:
6+
7+
Sometimes incidents require immediate attention. Instead of manually updating multiple fields, this button helps you:
8+
9+
Mark the incident as Critical.
10+
11+
Assign it to yourself (the logged-in user).
12+
13+
Add a note in the description indicating that it was marked Critical and by whom.
14+
15+
Provide a visual message confirming the change.
16+
17+
This makes it easier for teams to prioritize urgent incidents and track who made the update.
18+
19+
How It Works:
20+
21+
Appears as a button on the incident form.
22+
23+
Clicking it will first check if the incident is already Critical.
24+
25+
Prompts a confirmation message before applying changes.
26+
27+
Updates relevant fields and appends a note to the description.
28+
29+
Displays an informational message so the user knows the incident has been updated.
30+
31+
Note: Changes happen on the form only. The incident record in the database is updated only after you save or update the form.
32+
33+
Installation / Setup:
34+
35+
Navigate to System Definition → UI Actions in ServiceNow.
36+
37+
Click New to create a UI Action.
38+
39+
Configure the following:
40+
41+
Name: Set Priority to Critical
42+
43+
Table: Incident
44+
45+
Form Button: Checked
46+
47+
Client: Checked
48+
49+
List: Unchecked
50+
51+
Paste the script into the Onclick field.
52+
53+
Save and test on an incident form.
54+
55+
Usage:
56+
57+
Open an incident form.
58+
59+
Click the “Set Priority to Critical” button.
60+
61+
Confirm the action when prompted.
62+
63+
Review the description note and save the record to update the database.

0 commit comments

Comments
 (0)