Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ResponseOps][Connectors] Allow to use POST method for get case…
… information in case management webhook (#197437) (#199307) # Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps][Connectors] Allow to use POST method for get case information in case management webhook (#197437)](#197437) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Janki Salvi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-07T12:44:54Z","message":"[ResponseOps][Connectors] Allow to use POST method for get case information in case management webhook (#197437)\n\n## Summary\r\n\r\nResolves https://github.com/elastic/kibana/issues/178074\r\n\r\nThis PR allows to use POST method and JSON payload for body for get case\r\ninformation in case management webhook.\r\n\r\n<img width=\"1279\" alt=\"Screenshot 2024-10-24 at 15 02 33\"\r\nsrc=\"https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88\">\r\n\r\n### How to test\r\n- Create a case management webhook connector [as per\r\ndocumentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html)\r\n- Use any public API which supports GET and POST methods \r\n- Use POST method for Get case information\r\n- Verify that it validates the URL and JSON payload correctly \r\n- Test the connector using Test tab\r\n- Create a rule with action using case management webhook connector\r\n- Verify alerts are generated and action executed without any errors\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))","sha":"d81d0716a7007132d4a8210d1739e3f38a2c8cf9","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Actions/ConnectorsManagement","backport:prev-minor","v8.17.0"],"title":"[ResponseOps][Connectors] Allow to use POST method for get case information in case management webhook","number":197437,"url":"https://github.com/elastic/kibana/pull/197437","mergeCommit":{"message":"[ResponseOps][Connectors] Allow to use POST method for get case information in case management webhook (#197437)\n\n## Summary\r\n\r\nResolves https://github.com/elastic/kibana/issues/178074\r\n\r\nThis PR allows to use POST method and JSON payload for body for get case\r\ninformation in case management webhook.\r\n\r\n<img width=\"1279\" alt=\"Screenshot 2024-10-24 at 15 02 33\"\r\nsrc=\"https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88\">\r\n\r\n### How to test\r\n- Create a case management webhook connector [as per\r\ndocumentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html)\r\n- Use any public API which supports GET and POST methods \r\n- Use POST method for Get case information\r\n- Verify that it validates the URL and JSON payload correctly \r\n- Test the connector using Test tab\r\n- Create a rule with action using case management webhook connector\r\n- Verify alerts are generated and action executed without any errors\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))","sha":"d81d0716a7007132d4a8210d1739e3f38a2c8cf9"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197437","number":197437,"mergeCommit":{"message":"[ResponseOps][Connectors] Allow to use POST method for get case information in case management webhook (#197437)\n\n## Summary\r\n\r\nResolves https://github.com/elastic/kibana/issues/178074\r\n\r\nThis PR allows to use POST method and JSON payload for body for get case\r\ninformation in case management webhook.\r\n\r\n<img width=\"1279\" alt=\"Screenshot 2024-10-24 at 15 02 33\"\r\nsrc=\"https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88\">\r\n\r\n### How to test\r\n- Create a case management webhook connector [as per\r\ndocumentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html)\r\n- Use any public API which supports GET and POST methods \r\n- Use POST method for Get case information\r\n- Verify that it validates the URL and JSON payload correctly \r\n- Test the connector using Test tab\r\n- Create a rule with action using case management webhook connector\r\n- Verify alerts are generated and action executed without any errors\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))","sha":"d81d0716a7007132d4a8210d1739e3f38a2c8cf9"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Janki Salvi <[email protected]>
- Loading branch information