# Sub-tasks

> Break a task into sub-tasks, nest an existing task under a parent, see sub-tasks on board cards, and the rules for sprints, completion, archiving and deleting.

Source: https://docs.sofiaspace.uz/tasks/subtasks/

A **sub-task** is a step inside a task. Use sub-tasks to split one piece of work into smaller pieces that different people can pick up, while the parent task stays the thing you report on. A task with sub-tasks shows how many are done, and it can't be finished until they are.

Sub-tasks go **one level deep**: a task can have sub-tasks, but a sub-task can't have its own.

**Who can do this:** anyone who can open the project and edit its tasks. Included on every plan.

## Add a sub-task

1. Open the task.
2. In the **Sub-tasks** section, choose **Add**.
3. The **Create task** form opens with the title *New sub-task of …*. Fill in the **Title** and any other fields.
4. Choose **Create task**.

The new sub-task starts in the project's first status, like any new task. It gets its own key (for example `WEB-143`), its own assignee, status, dates and comments.

**Add** is greyed out on a task that is already a sub-task, because sub-tasks can't have their own sub-tasks.

## Make an existing task a sub-task

You can also move a task you already have under a parent.

1. Open the task you want to move.
2. In the details, find **Parent** and choose **Set** (or **Change** if it already has one).
3. Search for the parent by key or title in **Set parent**, and pick it.

To turn a sub-task back into a normal task, open it, choose **Change** next to **Parent**, and pick **Remove current parent (make top-level)**.

Only top-level tasks in the same project appear as possible parents.

## What sub-tasks show where

- **Task page** — the **Sub-tasks** section lists each sub-task with its key, title, status and assignee, plus *2 of 5 done* and a progress bar. Click a row to open that sub-task.
- **Sub-task page** — the header says *Sub-task of WEB-142*, with a link back to the parent.
- **Board** — with no swimlanes, or swimlanes by **Epic**, **Priority** or **Reporter**, only parent tasks are cards. Each card shows *3 / 5 sub-tasks*; choose **Show sub-tasks** to unfold them inside the card and change a sub-task's status from there. With swimlanes by **Assignee** or **Parent**, every sub-task is its own card, so each person's sub-tasks sit in their own lane.
- **Group by Parent** — on the Board, **View → Group by → Parent** gives each parent its own swimlane with its sub-tasks as cards, and a **No Parent** lane for the rest. This is the view for working through sub-tasks.
- **Backlog** — sub-tasks sit folded under their parent's row.
- **Timeline** — sub-tasks appear under their parent, below its phase.
- **Table** — add the **Subtasks** column from **View → Columns** to see the count.

If a filter matches a sub-task but not its parent, the board still shows the parent's card, with the matching sub-task unfolded.

## Sub-tasks and sprints

A sub-task always belongs to the same sprint as its parent.

- When you set a parent, the task moves into the parent's sprint (unless that sprint is already completed).
- When you move a parent into a sprint, its sub-tasks move with it.
- On a sub-task, the **Sprint** field reads **Follows its parent task** and can't be changed on its own.
- When a sprint is completed, unfinished sub-tasks move with their parent.

See [Sprints](https://docs.sofiaspace.uz/tasks/sprints.md).

## Finishing a task with sub-tasks

A task can't move to a finishing status while any of its sub-tasks is still open. A finishing status is one marked **Completes work** in the project's workflow — normally the statuses in the Done group. If you try, the status menu shows *Can't move to a Done status yet — 2 sub-task(s) still open*, and dragging the card to a finishing column is refused.

A sub-task counts as finished when it's in a status marked **Completes work**. Finish the sub-tasks first, then finish the parent. Finishing the last sub-task never finishes its parent automatically.

An archived sub-task that isn't finished still counts as open. If a parent won't finish and you can't see why, look in **View → Archived items** for its sub-tasks.

## Archive and delete

- **Archive** a parent and its sub-tasks are archived with it. **Restore** brings them back together.
- You can't restore an archived sub-task while its parent is still archived. Restore the parent first.
- **Delete task** on a parent deletes its sub-tasks too. The confirmation says so: *Delete WEB-142? Its sub-tasks are deleted too.*

## Sub-tasks, epics and phases

Sub-tasks and epics are two different ways of grouping:

| | Sub-tasks | Epic or phase |
| --- | --- | --- |
| Groups | Steps of one task | Many tasks toward one goal |
| Set with | **Parent** field | **Epic** (or **Phase**) field |
| On the board | Inside the parent's card | Not a card; listed in the sidebar |
| Blocks finishing | Yes — the parent waits for them | No |

An epic or phase can't be a sub-task, and it can't have sub-tasks. Group tasks under it with the **Epic** field instead. A sub-task can't be changed into an epic or phase while it has a parent, and a task with sub-tasks can't become one either. See [Backlog and epics](https://docs.sofiaspace.uz/tasks/backlog-and-epics.md).

## What you can't do

- You can't nest more than one level: no sub-tasks of sub-tasks.
- You can't make a task with sub-tasks into a sub-task of something else.
- You can't pick a parent from another project.
- You can't put a sub-task in a different sprint from its parent.
- There's no separate checklist inside a task. Use sub-tasks, or a bulleted list in the description.
