# Task dependencies and blocked tasks

Link tasks so one blocks another, across boards, with lag in days, cycle detection, a Warn or Block rule per board, date shifting and Tasks page filters.

URL: https://docs.truetask.io/tasks/dependencies

A dependency says one task cannot start until another finishes.
Truetask keeps the chain honest: it counts what is blocking each task, refuses a loop, and clears the block the moment the last blocker is resolved.

## Adding a dependency

Open a task and use its dependencies chip in the band under the title.
On a task with none yet, pick **Dependencies** from the **+** chip.
The links panel opens on the chip with **Blocked by** and **Blocks**, each with its tasks and an add row: **Add blocker** and **Add blocked task**.

![Truetask links panel open on a task's dependencies chip, with two tasks under Blocked by, one under Blocks and the Context from section](https://docs.truetask.io/screenshots/task-dependencies.webp)

There are two ways to pick the other task:

- **Search.**
The picker lists this board's open tasks first, and typing searches every board you can see.
A task on another board shows the folder and board it lives on, so two tasks with the same title stay apart.
- **Pick a card from the board.**
The crosshair hands the pick to the board: the frame steps aside and the board waits for you to click a task.
<kbd>Esc</kbd> cancels.

On the [Timeline](https://docs.truetask.io/boards/timeline) you can also drag from the handles at either end of a bar.

A dependency can cross boards.
You need to be a member of both boards to create or remove one, and a task you cannot see renders as **Private task** rather than leaking its title.

Truetask walks the whole graph before it saves, not just the two ends: if the edge would close a loop anywhere down the chain, it is refused.
A task cannot depend on itself either.

The same panel holds **Context from** and **Used as context by**, the tasks this one reads as context and the ones reading it.
Those links never block anything.
See [A task that reads another](https://docs.truetask.io/tasks/#a-task-that-reads-another).

## Add a lag between tasks

A dependency can carry a lag: the number of clear days to wait after the blocker ends before this task can start.
Set it from the blocker's row in the links panel, or click the link between two bars on the Timeline, then enter the clear days and **Set**.
A lag of 3 means the task can start on the fourth day after its blocker's end; 0, the default, means the next day.

The Timeline draws the lag as a gap between the bars, and the panel shows it as a short `3d` beside the blocker.

## Moving dates along the chain

When you drag a bar, or its end, on the Timeline and other tasks wait on it, Truetask asks **Shift the dependent tasks?** and says how many wait on this one.
**Shift them** moves every dependent by the same number of days, and further where a lag would otherwise be broken.
The writes land together as one undo step, so <kbd>Cmd</kbd>/<kbd>Ctrl</kbd>+<kbd>Z</kbd> puts the whole chain back.

Dependents hidden by a filter still move, because the constraint holds whether or not you can see them.

## How a blocked task reads

Truetask keeps three values on every task and recomputes them whenever an edge or a blocker changes:

| Value | Meaning |
| --- | --- |
| Blocked by | How many direct blockers are still unresolved. |
| Blocks | How many tasks this one holds up. |
| Actionable | True when the task is open and nothing blocks it. |

A task with at least one live blocker shows an amber badge with a link glyph and the blocker count on its preview, in every view.
In the task frame the band reads **Blocked by** and **Blocks** with their counts.

A blocker stops blocking when it is completed, cancelled or trashed.
An **archived** blocker still blocks: archiving parks work, it does not finish it.
When the last blocker clears, everyone watching the newly unblocked task gets a notification.

## Warn or Block

Each board decides how hard a blocker holds.
Open **Board setup > Board flow** and set **Blocking** on the In Progress lane.

| Setting | What it does |
| --- | --- |
| **Warn** | The default. Completing a blocked task asks first, naming how many blockers are open, with a **Complete anyway** button. |
| **Block** | A blocked task cannot enter In Progress or Done at all, whichever way it is moved. |

On a **Block** board the refusal says how many unfinished tasks block it.
Only entering the state is checked: a task already in progress when a blocker arrives can still move along its own row.
See [Board flow and WIP limits](https://docs.truetask.io/boards/flow).

## Filtering by dependency

On a board, the filter sheet offers **Actionable (not blocked)**, **Blocked by (count)** and **Blocks (count)**.
See [Filters and search](https://docs.truetask.io/boards/filters).

On [All tasks](https://docs.truetask.io/tasks/all-tasks), two filters work off the same counts:

- **Blocked** keeps tasks that have at least one unresolved blocker.
- **Blocks others** keeps tasks that hold something else up.

There is also a built-in **Blocked** work view, which is the Blocked filter already applied across every board you belong to.

## Automate on blocked and unblocked tasks

Two triggers fire off the same recomputation:

| Trigger | Fires when |
| --- | --- |
| **Task blocked** | A task becomes blocked by a dependency that is not done yet. |
| **Task unblocked** | The last dependency blocking a task is done. |

A common pair is to add a "blocked" tag and comment what the task is waiting on, then drop the tag and hand the task back to its owner when it clears.
See [Automation triggers](https://docs.truetask.io/automations/triggers).

## Agents and dependencies

The context an agent reads for a task includes its dependencies and whether the task is actionable.
That is how a delegated agent knows not to start on something that is still waiting, and how the [queue](https://docs.truetask.io/agents/pipelines) orders work it did not lay out itself.
See [Delegating work to agents](https://docs.truetask.io/agents/delegating).

The REST API and the `dependencies_create` MCP tool also accept a short `note` on an edge (up to 280 characters) and a `lag_days`.

## Related

- [Tasks](https://docs.truetask.io/tasks/)
- [Timeline](https://docs.truetask.io/boards/timeline)
- [Board flow and WIP limits](https://docs.truetask.io/boards/flow)
- [Automation triggers](https://docs.truetask.io/automations/triggers)
