Automatically add incident severity changes to incident timelines
Release Notes
Incident severity is assigned at the beginning of an incident to ensure proper response across the organization. Incident severity is determined based on the information that is available at the time. Severities can and should be adjusted as more information becomes available.
In 15.6 changes in incident severity automatically appear in the incident timeline.
Proposal
When the status of an incident is changed the timeline is automatically updated to reflect that change
It would be great if changing Severity had the same effect. This is something we always want to be reflected in the timeline, we can do it manually but it would improve the user experience if it happened automatically.
Implementation guide
- Hide new functionality behind a feature flag
incident_timeline_events_for_severity
. See https://docs.gitlab.com/ee/development/feature_flags/#create-a-new-feature-flag - Create a new timeline event
IncidentManagement::TimelineEvents.change_severity
- Call this timeline event after a severity was changed
-
IncidentManagement::AddSeveritySystemNoteWorker
takes care of creating a system notes already so we could callIncidentManagement::TimelineEvents.change_severity(incident, user)
here as well. - This call should be done in database transaction also wrapping the system note creation.
-
- Add specs
Edited by Alana Bellucci