The Hive Create case based on Template

Hello,

I’ve been playing aroud with n8n and I came accross a doubt that hopefully someone can help me with.

I have been using n8n to pull some data from Elasticsearch and open Alerts or Cases in Thehive. Instead of using multiple TheHive Nodes (one to create a Case and others to create the Tasks) I would like to know how to create a Case based on a Template.

I may be wrong, but I believe that if this would be possible in n8n, in the n8n TheHive Resources should exist a “Templates” object, in order for me to be able to query and select existing Templates.

n8nthehive

In the Thehive4py API, the “Case” Class has a field named template, which if filled, will use the corresponding Template when opening a new Case. This way the n8n Workflow would become simpler to create, since I would already have multiple tasks previously created.

Kind regards,
Rob

Information about the n8n setup:

  • n8n version:
  • Database: SQLite
  • Running n8n with the execution process: own(default)
  • Running n8n via: Docker

Hi @robjennings, many thanks for sharing your feedback on the TheHive node and a new Template resource. I’ve converted this question into a feature request so other users can vote on it (helping our team prioritize their development efforts).

Thank you very much @MutedJam

Kind regards,
Rob

You are most welcome! Don’t forget to vote on this feature yourself :slight_smile:

Hi everybody / @MutedJam / @robjennings

I am currently working on a project using n8n in combination with the TheHive integration.

Are there any plans or a roadmap/tineline on supporting the template feature of TheHive?

Regards,
Lukas

1 Like

Meanwhile I invested some time and modified the existing “TheHive” node to allow the case creation based on a given template name.

The module is available as a community module named “n8n-nodes-thehive-template”.
I will enhance the module if I need any additional functionality. Therefore, it can not be guaranteed that the current state remains stable “forever”, but I’ll do my best to keep the changes backwards compatible.

@MutedJam
If you are interested in integrating the changes into the regular module, feel free. The source code is available at n8n-modules / thehive-template · GitLab.

Regards,
Lukas

1 Like

Hey @LukasFrey,

Some nice work there, I know we are planning to overhaul the node soon. Would you be up to chatting with someone so we can find out what features you would be interested in?

1 Like