Skip to content

Commit b659260

Browse files
authored
Create README.md
1 parent 47e57b4 commit b659260

File tree

1 file changed

+6
-0
lines changed
  • Server-Side Components/Business Rules/Automatically Reopen Incidents Closed Prematurely

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
If a user reopens a closed incident within 5 minutes of closure (e.g., because the issue wasn't actually resolved), automatically reopen it, log the reason, and notify the assigned user.
2+
This code detects when an incident is reopened within 5 minutes of being closed. It compares the previous and current state of the record, and if it was previously Closed (state = 7) and is now Active, it calculates the time since closure. If the reopening happened within 5 minutes, it:
3+
Triggers an event incident.reopened_quickly for notifications or logging.
4+
Adds a work note explaining the automatic flag.
5+
Sets a custom flag field u_reopened_flag to true for tracking.
6+
This is useful for identifying and tracking incidents that are quickly reopened, possibly indicating incomplete resolution.

0 commit comments

Comments
 (0)