Set Parent For Task
asana_set_parent_for_taskAssign a parent task to make it a subtask, or set to null to promote to top-level. Control sibling position with insert_before/after.
Instructions
Convert a task into a subtask by assigning it a parent task. Optionally control the subtask's position among its siblings. Returns the updated task object including the new parent. To remove a parent (promote a subtask to top-level), set parent to null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | The GID of the new parent task, or `null` to remove the parent and make this a top-level task. | |
| task_id | Yes | The GID of the task to make a subtask (numeric string, e.g. `'19234567890123'`). | |
| opt_fields | No | Comma-separated extra fields to include. Useful values: `gid,name,parent.gid,parent.name,resource_subtype`. | |
| insert_after | No | GID of a sibling subtask to insert this task after. Cannot be used with insert_before. Omit to insert at the end. | |
| insert_before | No | GID of a sibling subtask to insert this task before. Cannot be used with insert_after. Omit to insert at the beginning. |