Alert rules: support grouped logic (AND/OR) in trigger conditions
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:
- 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
- Issue changes state from resolved → unresolved
OR
- 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)
Product Area
Alerts
Auto-routing to @getsentry/product-owners-alerts for triage ⏲️
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.
Thank you very much for reacting and responding ! Is there an estimated implementation time ?
@ugniusversekenas I can't give a hard time, but in the next 2-3 months is a reasonable ballpark.
Alright, thank you. Will be waiting for this feature very much !