sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Alert rules: support grouped logic (AND/OR) in trigger conditions

Open ugniusversekenas opened this issue 1 month ago • 4 comments

Problem Statement

Problem

In Sentry alert configuration, trigger conditions currently allow choosing “any” or “all” of the listed conditions, but that choice applies to the entire list. This makes it impossible to express rules that require grouped logic, such as combining an AND pair inside an OR rule.

What we want

We want to receive an alert when any of these groups matches:

  1. Both thresholds are met (AND group):
  • Number of events in an issue is more than 100 in one day
  • Number of users affected by an issue is more than 15 in one day

OR

  1. Issue changes state from resolved → unresolved

OR

  1. Issue changes state from archived → escalating

In boolean form: (events > 100 in 1 day AND users affected > 15 in 1 day) OR (state: resolved → unresolved) OR (state: archived → escalating)

Solution Brainstorm

Add condition groups such as:

  • “Add group” (each group can be AND/ALL)
  • Top-level selector to combine groups (typically OR/ANY)
Image

Product Area

Alerts

ugniusversekenas avatar Dec 08 '25 15:12 ugniusversekenas

ENG-6072

linear[bot] avatar Dec 08 '25 15:12 linear[bot]

Auto-routing to @getsentry/product-owners-alerts for triage ⏲️

getsantry[bot] avatar Dec 08 '25 15:12 getsantry[bot]

Thank you for submitting this feature request! We are working on updates to our alerting platform that will allow this functionality in the future. Feel free to ping on this ticket again for status updates.

ameliahsu avatar Dec 08 '25 17:12 ameliahsu

Thank you very much for reacting and responding ! Is there an estimated implementation time ?

ugniusversekenas avatar Dec 09 '25 08:12 ugniusversekenas

@ugniusversekenas I can't give a hard time, but in the next 2-3 months is a reasonable ballpark.

ceorourke avatar Dec 09 '25 18:12 ceorourke

Alright, thank you. Will be waiting for this feature very much !

ugniusversekenas avatar Dec 10 '25 11:12 ugniusversekenas