Skip to content

feat(webhook): allow closing incidents via request body instead of url#8939

Merged
klesh merged 2 commits into
apache:mainfrom
bujjibabukatta:fix/#8910
Jun 22, 2026
Merged

feat(webhook): allow closing incidents via request body instead of url#8939
klesh merged 2 commits into
apache:mainfrom
bujjibabukatta:fix/#8910

Conversation

@bujjibabukatta

Copy link
Copy Markdown
Contributor

Fixes #8910

Summary

Added new webhook close issue endpoints that accept issueKey in the request body instead of the URL path. This enables Kibana v8.x webhook connectors to close incidents using a fixed URL.

Changes

  • Added POST /connections/:connectionId/issue/close
  • Added POST /connections/by-name/:connectionName/issue/close
  • Added request body support for issueKey
  • Reused existing closeIssue() logic to avoid code duplication
  • Regenerated Swagger documentation

Notes

  • No breaking changes
  • Existing path-based endpoints remain fully supported
  • Compatible with Kibana's fixed URL webhook configuration

@klesh

klesh commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Looks good.
Did you test it on you local machine?
I would like some screenshots to confirm it was well tested since there is no test case and I am not familiar with this part..

@bujjibabukatta

Copy link
Copy Markdown
Contributor Author

Hey @klesh These endpoints are basically just thin wrappers — they grab issueKey from the body and call the existing closeIssue() function, that's it. Nothing new that needs testing beyond what's already covered. Would you be okay merging this and I'll add tests in a follow-up?

@klesh klesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Thanks for your contribution.

@klesh klesh merged commit f2de2dc into apache:main Jun 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][Webhooks] Move dinamic webhook url fields to body

2 participants