-
Notifications
You must be signed in to change notification settings - Fork 624
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
[Bug] Upon case merge: missing webhook events about the operation performed on merged cases #1969
Comments
Hello, Are there any chances, that this could be fixed in 4.1.6 ? Is it a difficult code change, or just something that was missed out by accident, and easy to re-add ? (Again, the request is to have webhook events generated for status changes of Cases that were merged INTO some new case) |
Hey Guys, are you ignoring this issue report ? |
TheHive 4 behaves differently regarding case merge. It just removes the old cases and merge them into a new case. No more status marked as This event requires a webhook endpoint defined with
and should generate a webhook call with the following content:
|
Fantastic !! Thank you !! (Side note: |
Case merge in TheHive 3 was made because there were no Alerts in TheHive at that moment. With alerts, the need to merge case is less relevant because you can merge alerts into Cases. It was not a real feature :) In TheHive 4 case merge allows merging more than 2 cases in a single case (even if we don't allow it in the UI, but it's still possible by API) and keeping the source case in the database is not that useful for everyone. (It might be for you) |
I've done some testing... and can confirm that the webhook event is generated. Minor thing observed is, that the field "operation" is not "merge" like in your example above. |
Hello @martinr103 can you share your endpoint declaration (on the config file) The merge event is available only if the endpoint version is equal to 1. This produces results using v1 format. I can share an example for this. |
Oh, Sorry! I missed the note about "version: 1". My bad. Actually, are there any other differences in webhook events (besides this merge stuff), when I switch the "version" from 0 to 1 ?? |
Yes there are differences. Version 0 is returns backward compatible objects (with TheHive 3) and version 1 contains the object structures of TheHive 4. |
Ok, thanks. |
Request Type
Bug
Work Environment
Problem Description
When two cases are merged in Thehive 3 , then the application generates webhook events for:
But when two cases are merged in Thehive 4 , then the application generates only an event for the creation of a new case.
There are no webhook events about status change of the two underlying cases.
No information about the resolution / closure / deletion. No webhook event with a "details.mergeInto" field.
These webhook events are essential, if you want to integrate Thehive with another system.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: