Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to create variables in Routing template, i get an error: Selected alert will not be matched with this route #5386

Open
npcxiao opened this issue Dec 25, 2024 · 0 comments

Comments

@npcxiao
Copy link

npcxiao commented Dec 25, 2024

What went wrong?

What happened:

I want to create two variables ​​if the condition is true in the route template, But the result shows that there is no matching route

{%- if payload.state == 'alerting' %}
    {% set severity = "11" %}
    {% set worktype = "11" %}
{% endif -%}
Image

What did you expect to happen:

Hopefully the result will match the route and the variable will be created successfully and can be used in outgoting webhooks

How do we reproduce it?

  1. Open Grafana OnCall and edit Routing template
  2. Copy and paste the code
  3. Wait for the result message

Grafana OnCall Version

Grafana OnCall (1.10.5), Grafana v11.2.1 (6291d0d714),

Product Area

Alert Flow & Configuration

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

No response

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

No branches or pull requests

1 participant