Add task
planitude_add_taskAdds one task to an existing project and recalculates the dates. Position: parentTask (as a subtask), afterTask or beforeTask (among siblings); with none of them it goes to the end of the top level. If the parent had no subtasks it becomes a summary task whose dates come from its subtasks. Duration is in working days; a milestone has zero duration. Calling it twice adds two tasks. Requires write permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wbs | No | WBS code, e.g. 1.2.3. | |
| name | Yes | Task name. | |
| type | No | 'task' (default), 'milestone' (zero duration) or 'summary' (dates come from its subtasks). | |
| notes | No | Task notes. | |
| deadline | No | Task deadline in ISO 8601 with offset, e.g. 2026-11-30T17:00:00Z. | |
| afterTask | No | Insert right after this task. | |
| projectId | Yes | Project id (uuid), as returned by planitude_list_projects. | |
| beforeTask | No | Insert right before this task. | |
| parentTask | No | Insert as a subtask of this task (at any level). | |
| durationDays | No | Duration in working days. Default 1 day. | |
| durationMinutes | No | Duration in working minutes. Takes precedence over durationDays. |