> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sub-cases

> Group related cases under a parent case to track a campaign or incident as one investigation while keeping each alert's own status.

Sub-cases group related cases under a single parent case.
Use them when several alerts belong to one investigation, such as phishing reports from the same campaign, while each alert keeps its own status, priority, and assignee.

![Cases list including sub-cases](https://mintcdn.com/tracecat/SjHEFkqfn0iGEUO2/img/cases/sub-cases-list.png?fit=max\&auto=format\&n=SjHEFkqfn0iGEUO2\&q=85\&s=18444681cbf4baa297f66b2c31d87f9c)

Sub-cases are one level deep:

* A parent must be a top-level case.
* A sub-case can't have its own sub-cases.
* A case that already has sub-cases can't become a sub-case.

## Group cases under a parent

**1. Select the cases**

On the Cases page, tick the cases you want to group.

**2. Choose Group case**

Click `Actions` and select `Group case`.

![Group case action](https://mintcdn.com/tracecat/SjHEFkqfn0iGEUO2/img/cases/sub-cases-group-menu.png?fit=max\&auto=format\&n=SjHEFkqfn0iGEUO2\&q=85\&s=f58f0c1d5877c699ad8cc89826dc1bc7)

**3. Pick the parent**

Search for the parent case by ID or summary, select it, and click `Group under CASE-XXXX`.
Only top-level cases are listed. Cases that are already sub-cases of another parent move to the new parent.

![Group under parent case dialog](https://mintcdn.com/tracecat/SjHEFkqfn0iGEUO2/img/cases/sub-cases-group-dialog.png?fit=max\&auto=format\&n=SjHEFkqfn0iGEUO2\&q=85\&s=887df81ef2256e9d2eba7edcb0d06059)

You can also add sub-cases from the parent: open the parent case, select the sub-cases tab, and click `Add sub-cases`.

## View sub-cases

Open a parent case and select the sub-cases tab in the case toolbar.
The tab lists every sub-case with its status and priority. Use `Search sub-cases...` to filter by summary or ID, and click a row to open the sub-case.

![Sub-cases on a parent case](https://mintcdn.com/tracecat/SjHEFkqfn0iGEUO2/img/cases/sub-cases-parent.png?fit=max\&auto=format\&n=SjHEFkqfn0iGEUO2\&q=85\&s=82916fca2fa2dc58cb691561908afc01)

A sub-case shows a `Sub-case of` link to its parent above the summary.

![Sub-case parent link](https://mintcdn.com/tracecat/SjHEFkqfn0iGEUO2/img/cases/sub-cases-breadcrumb.png?fit=max\&auto=format\&n=SjHEFkqfn0iGEUO2\&q=85\&s=f85a862e3a20d08280c1a4dbebc74f90)

## Show sub-cases in the cases list

Sub-cases are hidden from the Cases page by default, so the list shows one row per investigation.
Open `Display` above the case list and turn off `Parents only`.
Sub-cases then appear with their parent's ID next to the summary, and parent cases show their sub-case count.

While a search term is applied, results always include sub-cases and the toggle is disabled.

## Ungroup cases

To return sub-cases to the top level, show sub-cases in the list, tick the sub-cases, click `Actions`, and select `Ungroup case`.
You can also remove a single sub-case from the sub-cases tab of its parent.

## Closing a parent case

Closing or resolving a parent case does not change its sub-cases.
Sub-cases keep their own status, and open sub-cases don't block closing the parent.
Close each sub-case separately, or select them in the cases list and set `Status` in bulk.

## Use sub-cases from MCP

The [Tracecat MCP server](https://docs.tracecat.com/automations/tracecat-mcp.md) supports sub-cases:

| Tool | Use |
| - | - |
| `search_cases` | Pass `parent_id` to list a parent's sub-cases, or `hierarchy="top_level"` to list only parent and standalone cases. |
| `create_case` | Pass `parent_id` to create the case as a sub-case. |
| `set_case_parent` | Group up to 1000 cases under a top-level parent. |
| `clear_case_parent` | Return up to 1000 sub-cases to the top level. |

`get_case`, `list_cases`, and `search_cases` return `parent` and `num_sub_cases` for each case.

## Related pages

* See [Case management](https://docs.tracecat.com/automations/cases.md) for an overview of case features.
* See [Correlations](https://docs.tracecat.com/automations/cases/correlations.md) to find other cases that link the same row.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.