State should move to in progress if reopen intent is choose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi All,
Objective:
When an incident is created, its initial state is New. It is then assigned to an Assignment Group and a specific User, which changes the state to In Progress.
Once the developer works on it, the incident is moved to the Resolved state.
If the Caller (Requested by) adds a comment containing reopen keywords, the incident should transition back to In Progress.
If the caller adds gratitude keywords like "thank you", "solved", etc., the incident should remain in the Resolved state.
The current implementation behaves as expected during the first cycle of the workflow. Here's the test scenario:
First Cycle:
- Incident created → State: New
- Assigned to group and user → State: In Progress
- Developer resolved the incident → State: Resolved
- Caller added comment:
- Gratitude keyword → State remains Resolved ✅
- Random text → State remains Resolved ✅
- Reopen keyword → State changes to In Progress ✅
Everything works fine in this cycle.
Second Cycle (After Reopen):
- Developer worked again and moved it to Resolved
- Caller added another comment:
- Gratitude keyword → State changes to In Progress ❌ (Should remain Resolved)
- Random text → State changes to In Progress ❌ (Should remain Resolved)
- Reopen keyword → State changes to In Progress ✅
Issue:
The logic works correctly during the first cycle, but in the second cycle, even non-reopen comments are incorrectly triggering a transition to In Progress.
Let me know if you'd like help reviewing or updating the code logic to fix this behavior.
code:
BR : After update