For me the classic condition was not a viable workaround, because I wanted to use template variables in the message text.
I got it to work by adding another reduce expression inbetween. See ngalert don't work with prometheus datasource · Issue #35540 · grafana/grafana · GitHub