Link two tasks
tasks_add_dependencyRecord that one task waits on, blocks, or is related to another. The database refuses a link that would close a cycle, a task depending on itself, a duplicate of an existing link, and any pair whose tasks are not in the same workspace - those refusals come back verbatim, so relay them rather than retrying. Use waiting_on for the ordinary case: the task named in task_id cannot start until depends_on_task_id is done. BOTH ARGUMENTS ARE TASKS, not links. There is no dependency_id here because the link does not exist yet - this call is what creates it, and the id it returns is the one tasks_remove_dependency would later need.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task that has to wait, by title or id. A task, not a dependency id. | |
| relationship_type | Yes | waiting_on: this task cannot start until the other is done - the one that actually blocks work. blocking: the mirror, stated from the other end. related_to: connected but neither waits for the other. | |
| depends_on_task_id | Yes | The task being waited on, by title or id. A task, not a dependency id. |