You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a UI Action script that adds a button to the Incident form. When clicked, it will check if the incident has been unassigned for more than 5 days.
2
+
If this condition is met, the button will trigger a notification to the manager of the incident's assignment group, informing them that the incident is still unassigned.
3
+
4
+
Below are the conditions when UI action will be created:
5
+
Table: Incident
6
+
Show Insert: False
7
+
Show Update: True
8
+
Form Button: Checked (to add the button on the form)
- The script checks if the incident has been unassigned for more than 5 days by comparing the current date with the sys_created_on date using gs.daysAgo().
13
+
- It verifies that the incident has an assignment group. If it does not, it displays an error message.
14
+
- Queries the sys_user_group table to get the assignment group’s manager. If a manager is found, it sets up a notification to send an email directly to the manager.
15
+
- Provides feedback to the user if the notification was sent or if there were issues (like missing assignment group or manager).
16
+
- Redirects the user back to the current incident form after the UI Action runs.
0 commit comments