Alert Severity Update Behavior When Reopened by a New Event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
When an Alert is reopened due to a new event being received within the 4-hour window, and the new event has a different severity from the existing Alert, will the Alert's severity be updated to match the new event's severity? If yes, how does this update happen?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited 8 hours ago
If the severity isn't updating on reopen, you can sync it from the latest event with a before-update business rule on em_alert:
Table: em_alert
When: before, Update
Condition: current.state.changesTo('Reopen')
(function executeRule(current, previous) {
var ev = new GlideRecord('em_event');
ev.addQuery('message_key', current.message_key);
ev.orderByDesc('sys_created_on');
ev.setLimit(1);
ev.query();
if (ev.next() && ev.severity != current.severity) {
current.severity = ev.severity;
}
})(current, previous);
Test it in a sub-production instance first.
Hope this helps.