Skip to content

Commit 6673e12

Browse files
authored
Update README.md
1 parent 4b3e920 commit 6673e12

File tree

1 file changed

+12
-6
lines changed
  • Server-Side Components/Business Rules/Auto Create Problem Records for Recurring Incidents

1 file changed

+12
-6
lines changed
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
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

Comments
 (0)