create_task
Create a task in a project to enable time logging; check existing tasks first to avoid duplicates.
Instructions
Create a task in a project, both named or identified. Tasks are what time is declared against, so a project needs at least one before log_time works. A task with is_container true only holds other tasks and takes no time; a subtask names its parent. planned_duration and estimated_duration accept human durations (40h, 90m). Check list_tasks first, since a second call creates a duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The task's name. | |
| tags | No | Tag names to attach. | |
| end_at | No | When the task is supposed to end. | |
| groups | No | Group identifiers to assign. | |
| parent | No | The parent task, by name or id, when this is a subtask. | |
| project | Yes | The project it belongs to, by name, code or id. | |
| start_at | No | When the task starts. Required by Gryzzly. Defaults to today. | |
| budget_type | No | How the budget is expressed. | |
| hourly_rate | No | The hourly rate, when the type calls for one. | |
| is_container | No | Whether this task only holds other tasks. A container takes no time. | |
| budget_amount | No | The budget amount, when the type calls for one. | |
| hourly_rate_mode | No | Where the hourly rate comes from. | |
| planned_duration | No | Planned time, as a duration (`40h`, `3600s`, `90m`). | |
| estimated_duration | No | Estimated time, as a duration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The task's identifier. | |
| name | No | The task's name. | |
| tags | No | The tags attached to the task. | |
| end_at | No | When the task is supposed to end. | |
| groups | No | The groups assigned to the task. | |
| start_at | No | When the task starts. | |
| parent_id | No | The parent task, when this task is a subtask. | |
| created_at | No | When the task was created. | |
| project_id | No | The project the task belongs to. | |
| updated_at | No | When the task was last updated. | |
| budget_type | No | One of `none`, `detailed`, `global`, `time`. | |
| hourly_rate | No | The task's hourly rate. | |
| completed_at | No | When the task was completed. | |
| is_container | No | Whether the task only holds other tasks. | |
| budget_amount | No | The task's budget. | |
| hourly_rate_mode | No | One of `task`, `group`, `contributor`. | |
| planned_duration | No | Planned duration, in seconds. |