Skip to content

[8.19] Implement functionality to add observables, procedures and custom fields to alerts for TheHive (#207255)#224591

Merged
semd merged 1 commit intoelastic:8.19from
semd:backport/8.19/pr-207255
Jun 19, 2025
Merged

[8.19] Implement functionality to add observables, procedures and custom fields to alerts for TheHive (#207255)#224591
semd merged 1 commit intoelastic:8.19from
semd:backport/8.19/pr-207255

Conversation

@semd
Copy link
Contributor

@semd semd commented Jun 19, 2025

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…lds to alerts for TheHive (elastic#207255)

## Summary

- Added a toggle to retain the severity from the rule. When enabled,
alerts generated from the rule will inherit its severity; otherwise,
users must manually select a severity level from the dropdown.

- Added a template selection menu with predefined basic templates. These
templates come with preset configurations, including observables and
procedures, which automatically populate the Body field upon selection.
Users also have the option to modify an existing template or create a
custom one using the `Custom Template` option.

## Screenshots
![image
(35)](https://github.com/user-attachments/assets/d7a7b6c8-ae27-4ef4-8396-6625ddbd960c)
![image
(36)](https://github.com/user-attachments/assets/85314883-a2aa-4a9c-b1e3-ebdd9a5c3e29)

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 884e51a)

# Conflicts:
#	docs/reference/connectors-kibana/thehive-action-type.md
@semd semd requested a review from kibanamachine as a code owner June 19, 2025 14:22
@semd semd added the backport This PR is a backport of another PR label Jun 19, 2025
@semd semd enabled auto-merge (squash) June 19, 2025 14:22
@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 19, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #18 / Description hides and shows the description correctly when collapse button clicked
  • [job] [logs] Jest Tests #18 / getVisualizationAttachmentType getAttachmentViewObject renders the children correctly
  • [job] [logs] Jest Tests #12 / SaveTimelineButton should open the timeline save modal

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
stackConnectors 640.4KB 643.4KB +2.9KB

History

@semd semd merged commit 562d776 into elastic:8.19 Jun 19, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants