set_subtask_parent
Set a task's parent to create a subtask, or remove the parent to unlink the subtask relationship. Provide parent_id or old_parent_id accordingly.
Instructions
Set or unset a task's parent (subtask relationship).
[Category: Tasks — Batch] [Auth: V2]
[Related: create_task, get_task_detail]
[Workflow: create_task → set_subtask_parent (TickTick ignores parentId on creation)]
Args:
task_id: The child task ID.
project_id: The project both tasks belong to.
parent_id: New parent task ID (to make subtask). Provide THIS to SET.
old_parent_id: Previous parent ID (to remove). Provide THIS to UNSET.
⚠️ Provide EITHER parent_id OR old_parent_id, not both.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>",
"project_id": "<project_id>"
},
"name": "set_subtask_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| project_id | Yes | ||
| parent_id | No | ||
| old_parent_id | No |