reorder_tasks
Changes the manual order of tasks within one sibling group - the order the List and the Gantt display. Two input shapes: taskIds as the COMPLETE sibling group (every task sharing the same parentId, missing ids are refused) in its new order, together with projectId and parentId (null or omitted = top-level tasks); or taskId plus ONE of beforeTaskId / afterTaskId to move a single task relative to a sibling, with the full order computed server-side from the current order. The reference task must share the moved task's parent: reordering never changes a task's parent (that is update_task's parentId field). Requires the project.edit permission on the project; the reordered view is shared by everyone on it. Returns the group in its resulting order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | No | RELATIVE shape: the task to move. | |
| taskIds | No | FULL shape: the complete sibling group in its new order. | |
| parentId | No | FULL shape: the shared parent task id, or null/omitted for top-level tasks. | |
| projectId | No | FULL shape: the project whose sibling group is being reordered. | |
| afterTaskId | No | RELATIVE shape: place taskId immediately after this sibling. | |
| beforeTaskId | No | RELATIVE shape: place taskId immediately before this sibling. |