State and Incident State sync issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi All,
I have a custom Before Update BR as below:
When to Run : u_strike_counter = 4
But When incident is resolved, the state field is getting updated to Resolved but the Incident State field is still in progress. The OOTB state to incident state sync BR is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
I would use current.state = 6; in this script to trigger the state sync OOTB BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8m ago
But as per the client we should not hardcode the value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
18m ago
Hi @Bhagya ,
The issue occurs because the state is being set in a Before Update BR, which bypasses the OOTB incident state sync logic. Move the logic to an After Update BR or explicitly set both state and incident_state. Best practice is to update the state in an After Update BR and let OOTB sync handle the incident state
If my response helped mark as helpful and accept the solution
Thanks,
AnkaRao
