v0.3.0: task nesting (parent_id) + sibling ordering (sort_order) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.3.0-nested-ordered-tasks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds task nesting and sibling ordering as thin, backward-compatible primitives, plus a dedicated
set_task_parenttool. Nothing existing changes behavior.What's new
set_task_parent(task_id, parent_id, project_id?)— attach / re-parent / detach a task.parent_id=""detaches.parent_id/sort_orderkwargs oncreate_taskandupdate_task(client, handler, and tool layers).Taskmodel now surfacesparent_idandsort_order.v2 mechanics (confirmed live 2026-06-18)
parentIdon thebatch/taskadd payload is silently dropped. Parenting goes through a dedicatedPOST batch/taskParent(JSON array body): attach[{taskId, parentId, projectId}]; re-parent addsoldParentId; detach omitsparentId, includesoldParentId. Standard{id2etag, id2error}envelope. Socreate_task/update_taskacceptparent_idas a convenience but route it throughset_task_parent—parentIdnever touches thebatch/taskpayload.sort_order→sortOrderis honored at create time (no second pass). Large signed int; lower sorts higher; relative to siblings under the same parent.All wire-level field names stay inside
ticktick_mcp/client/per the DESIGN.md §1 layering law.Testing
batch/taskpayload, no parenting call), detach, re-parent, and the cross-project / missing-projectId error paths.create_task(parent_id=…, sort_order=…)path; API read-back confirmed allparentId/childIds/sortOrderrelationships, and nested+ordered rendering confirmed in the TickTick UI.Docs
DESIGN.md §8 (new), CLIENT_METHODS.md, TOOLS.md, README.md (22→23 tools, compose tag → 0.3.0), pyproject
version = "0.3.0".🤖 Generated with Claude Code