[**zonegaze-flow**](../../../../README.md)

***

[zonegaze-flow](../../../../README.md) / [flow/contracts/src](../README.md) / addTaskDependency

# Function: addTaskDependency()

> **addTaskDependency**(`board`, `firstTaskId`, `secondTaskId`): [`RuntimeAddTaskDependencyResult`](../interfaces/RuntimeAddTaskDependencyResult.md)

Defined in: [flow/product/src/kanban-adapter/task-board-mutations.ts:527](https://github.com/neuralpilot08/zonegaze-flow/blob/ee47e8308e50071e712017a7f8b0db560a4746ee/flow/product/src/kanban-adapter/task-board-mutations.ts#L527)

Adds a dependency edge between two tasks.

One endpoint must be in Backlog; the persisted edge is normalized so
`fromTaskId` is the backlog task and `toTaskId` is the linked active task.

## Parameters

### board

#### columns

`object`[] = `...`

#### dependencies

`object`[] = `...`

#### workTypeRegistry

`RuntimeWorkTypeRegistry` = `runtimeWorkTypeRegistrySchema`

### firstTaskId

`string`

### secondTaskId

`string`

## Returns

[`RuntimeAddTaskDependencyResult`](../interfaces/RuntimeAddTaskDependencyResult.md)
