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

[8.12] [Response Ops][Actions] Fixing bug where context variables are not passed in when alerts as data doc is available in action params (#175682) #175737

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

kibanamachine
Copy link
Contributor

…ssed in when alerts as data doc is available in action params (elastic#175682)

Resolves elastic#175624

## Summary

Fixes a bug where context and state variables were not passed to the
action params for interpolation if the alert-as-data document is
available.

## To Verify
* Create a rule and add an action that fires `For each alert - on check
intervals`
* Add a condition to the action, either a KQL query or a time range
* Make sure the action message references some context variables
(default ES query or Index Threshold rule messages should include
context variables)
* Save the rule and make sure the action fired correctly includes the
referenced context variables.

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 8a6ee8a)
@ymao1
Copy link
Contributor

ymao1 commented Jan 27, 2024

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ymao1

@kibanamachine kibanamachine merged commit 779907f into elastic:8.12 Jan 27, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants