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 business rule automatically creates a Problem record when there are 5 or more incidents linked to the same Configuration Item (CI) within the last 24 hours.
2
-
How it works technically:
3
-
-It first checks if the current Incident has an associated CIThen, it counts the number of incidents created in the last day for that CI.
4
-
-If the count is 5 or more, it looks for any open Problem records related to the same CI.
5
-
-If no open Problem exists, it creates a new Problem with a short description indicating recurring incidents on that CI.
6
-
-Finally, it logs the creation of the Problem.
1
+
This "after" business rule automatically creates a Problem record when a particular Configuration Item (CI) has had 5 or more incidents in the last 24 hours, and no open Problem already exists for that CI.
2
+
This helps in proactive problem management, aiming to address recurring issues.
3
+
Here’s the working of the code explained:
4
+
5
+
- Check if CI is present in the current Incident (current.cmdb_ci).
6
+
- Count incidents created in the last 24 hours for the same CI using GlideAggregate.
7
+
8
+
If 5 or more incidents are found for that CI:
9
+
- Query the Problem table to check if an open Problem (not closed) already exists for that CI.
10
+
- If no open Problem exists, create a new Problem record with: The same CI, A predefined short description And set its state to New (1).
11
+
- Log a message indicating that a Problem has been created.
12
+
This automates Problem creation for frequent incidents on the same CI.
0 commit comments