Skip to content

[🐛 Bug]: Incidents with "Resolve on all_resolved" do not resolve when alert is enriched via workflow #6194

@PaulieNor

Description

@PaulieNor

Describe the bug
When all alerts, in an incident set to resolve on all_resolved, are resolved it does not resolve the incident.

These alerts are resolved by enriching the alert to "resolved" through a workflow.

Manually resolving these alerts does resolve the incident. However for my purposes I need to be able to resolve incidents programatically.

To Reproduce

I am on version 0.51 (latest).

Create an incident via correlation set to Resolve on all_resolved.

Resolve those alerts via a workflow. The incident will not resolve.

This is the action I am using to resolve the alerts:

`
actions:

- name: resolve-dag-alerts

  foreach: " {{ steps.get-firing-alerts.results }} "

  provider:

    type: mock

    with:

      enrich_alert:

        - key: status
        
          value: resolved

          disposable: true

        - key: resolved_by
        
          value: keep-workflow

`

Expected behavior

When a workflow enriches all alerts to resolve in an incident set to resolve on all alerts resolved, that incident should resolve.

Screenshots

Image

Additional context

There is another issue describing the same problem which apparently has been fixed, however this does not seem to be the case for me.

#3142

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions