Skip to content

Support OR Conditions For Alerts #53091

Closed

Description

@sentryadam0000345

Problem Statement

Right now alerts don't support OR conditions and as a result, separate alerts are needed to be created.

Solution Brainstorm

Ability to have OR condition built directly into alert UI.

Product Area

Alerts

Activity

  1. getsantry commented on Jul 18, 2023

    @getsantry
    Contributor

    Assigning to @getsentry/support for routing ⏲️

  2. moved this to Waiting for: Support in GitHub Issues with 👀on Jul 18, 2023
  3. sentryadam0000345 commented on Jul 18, 2023

    @sentryadam0000345
    Author

    This can also be used as a strategy to optimize the groupings of alert rules to lower the number, as there can be a 100 rule limit cap when dealing with Sentry SaaS.

  4. getsantry commented on Jul 18, 2023

    @getsantry
    Contributor

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

  5. moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀on Jul 18, 2023
  6. barkbarkimashark commented on Jul 18, 2023

    @barkbarkimashark
    Contributor

    @sentryadam0000345 could you explain a little more? There's the any condition qualifier which I would think works as an OR condition?

  7. sentryadam0000345 commented on Jul 18, 2023

    @sentryadam0000345
    Author

    @barkbarkimashark

    Any does support OR, but I was wondering if each filter condition could be it's own expression, such as (A AND Z) or (B AND Z) or (C AND Z)

  8. armenzg commented on Jul 20, 2023

    @armenzg
    Member

    Thanks @sentryadam0000345 for filing it.
    I've backlogged your request.

  9. 19 remaining items

  10. jishinhv commented on Sep 12, 2025

    @jishinhv

    Any ETA's on this folks?

  11. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Sep 12, 2025
  12. saponifi3d commented on Sep 12, 2025

    @saponifi3d
    Contributor

    Hey @jishinhv -- we meet again! (#54643) 👋

    We found, while trying to design a UI, that OR statements get very complicated, very quickly. It can be difficult to know how many nested logic statements there are and how to clearly communicate order of operations.

    We're doing some internal testing around configuring alerts with multiple if statements and how we could re-create some aspects of OR logic in a single alert. That said, it's not quite the same as being able to inline OR statements, and are eager to start getting feedback on the new updates!

  13. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Sep 12, 2025
  14. liam-eci commented on Oct 21, 2025

    @liam-eci

    Another thread on this: #54732

    it's a bit upsetting to see that the requests have been made back in 2023 and there is no solution yet. I don't mean this as a complain, I mean that I am not sure if I should plan waiting for it. Any workaround feels messy tbh.

  15. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Oct 21, 2025
  16. saponifi3d commented on Oct 21, 2025

    @saponifi3d
    Contributor

    @liam-eci really sorry it's been a bit for these changes to come out! I agree there haven't been too many visible changes yet. we've been working a lot on improving processing speed and reliability, and revamping our data modeling to support these larger UI / logic changes -- ps, all of these changes are already live!

    For the updated UI side, we're actually getting ready to share some of screenshots of the updated flows to gather some feedback and we've started to internally test the new UI. I hope that it can ease your mind and know that we're pushing hard to get these updates released to y'all as soon as we can.

  17. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Oct 21, 2025
  18. souredoutlook commented on May 22, 2026

    @souredoutlook
    Contributor

    We now support multiple IF conditions per alert - this means that alerts that share the same WHEN condition can have multiple IF/THEN blocks creating the ability to have alerts that following:

    WHEN X

    IF A
    THEN B

    OR

    IF C
    THEN D

    Closing as done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions