asana_add_task_dependencies
Set task dependencies in Asana by linking tasks that must be completed before others can start, ensuring proper workflow sequencing.
Instructions
Set dependencies for a task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task ID to add dependencies to | |
| dependencies | Yes | Array of task IDs that this task depends on |
Implementation Reference
- src/tool-handler.ts:326-332 (handler)The tool handler case that destructures arguments and calls the Asana client wrapper to add task dependencies.case "asana_add_task_dependencies": { const { task_id, dependencies } = args; const response = await asanaClient.addTaskDependencies(task_id, dependencies); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
- src/asana-client-wrapper.ts:217-225 (helper)Core implementation that constructs the API request body and calls the Asana SDK to add dependencies to the specified task.async addTaskDependencies(taskId: string, dependencies: string[]) { const body = { data: { dependencies: dependencies } }; const response = await this.tasks.addDependenciesForTask(body, taskId); return response.data; }
- Tool definition including name, description, and input schema for validating arguments.export const addTaskDependenciesTool: Tool = { name: "asana_add_task_dependencies", description: "Set dependencies for a task", inputSchema: { type: "object", properties: { task_id: { type: "string", description: "The task ID to add dependencies to" }, dependencies: { type: "array", items: { type: "string" }, description: "Array of task IDs that this task depends on" } }, required: ["task_id", "dependencies"] } };
- src/tool-handler.ts:28-30 (registration)Imports the tool schema for registration.addTaskDependenciesTool, addTaskDependentsTool, setParentForTaskTool
- src/tool-handler.ts:50-50 (registration)Adds the tool to the list of available tools.addTaskDependenciesTool,