List Case Tasks
thehive.list_case_tasks
ActionBusiness appsconnection required
Calls the TheHive API with the connection's credentials.
List the tasks that belong to one case.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- TheHive
- Secret shape
- the TheHive API key, or {"api_key": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
8 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
case_id TheHive id of the case, or its case number. | string | Yes | — | — | ~40964216 |
status Keep tasks in exactly this status, e.g. Waiting or InProgress. | string | No | — | — | — |
assignee Keep tasks assigned to this login. | string | No | — | — | — |
filters A raw TheHive filter expression as JSON, e.g. {"_in": {"_field": "status", "_values": ["New", "InProgress"]}}. It is combined with the fields above using _and. | object | No | — | — | {"_in":{"_field":"status","_values":["New","InProgress"]}} |
sort_by Field to sort by, using TheHive's own field name, e.g. _createdAt. | string | No | — | — | _createdAt |
sort_order Sort direction applied to 'sort_by'. | string | No | desc | one of "asc", "desc" | — |
start Index of the first record to return, counting from 0. | number | No | 0 | ≥ 0 | — |
limit How many records to return in this page. | number | No | 50 | 1–1000 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"case_id": "~40964216",
"filters": {
"_in": {
"_field": "status",
"_values": [
"New",
"InProgress"
]
}
},
"limit": 50,
"sort_by": "_createdAt",
"sort_order": "desc",
"start": 0
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
items[]._id TheHive's internal id for the task. | string | — |
items[].title The task title. | string | — |
items[].group The task group the task belongs to. | string | — |
items[].description The task description. | string | — |
items[].status The task status, e.g. Waiting or InProgress. | string | — |
items[].assignee Login of the analyst the task is assigned to. | string | — |
items[].order The task's position in its group. | number | — |
items[].dueDate When the task is due, in epoch milliseconds. | number | — |
items[].mandatory True when the case cannot close with this task open. | boolean | — |
items[].flag True when the task is flagged for attention. | boolean | — |
items[]._createdAt When the task was created, in epoch milliseconds. | number | — |
count How many tasks this page returned. | number | — |
{
"count": 0,
"items": [
{
"_createdAt": 0,
"_id": "",
"assignee": "",
"description": "",
"dueDate": 0,
"flag": false,
"group": "",
"mandatory": false,
"order": 0,
"status": "",
"title": ""
}
]
}See List Case Tasks run in a workflow.
In a technical demo we add the TheHive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.