Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
As part of the Zurich release, additional message methods were introduced to display at the top of forms.
addHighMessage()
addLowMessage()
addModerateMessage()
addSuccessMessage()

<img width="1277" height="192" alt="image" src="https://github.com/user-attachments/assets/4a824bbb-92d0-4108-ab73-bdc263404c5a" />

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//Table: Incident
//When to Run: After update
(function executeRule(current, previous /*null when async*/ ) {

if (current.priority == 2)
gs.addHighMessage("This is a high incident, and assign it as soon as possible.");
if (current.state == 6)
gs.addLowMessage("The incident will be marked as closed automatically after 7 days.");
if (current.state == 6)
gs.addModerateMessage("Refer to the resolution information section for the resolution notes.");
if (current.assigned_to.changes())
gs.addSuccessMessage("The notification has been sent to the assignee.");

})(current, previous);
Loading