Milestones
The Milestones API provides CRUD access to project milestones plus bulk reordering.New to the API? Start with Getting started (base URL, response envelope, errors, pagination) and Authentication (API keys).
Identifier note: milestones are addressed by their numeric milestone_id.
Milestones belong to a project. They are grouping buckets that tasks are assigned to. Listing requires aproject_id. Each project has a systemuncategoriseddefault milestone (the catch-all for tasks without one) which cannot be deleted.
Scope: the global milestone-category templates (settings/milestones) and web events are
out of API scope.
The milestone object
| Field | Type | Notes |
|---|---|---|
id | integer | Milestone id. |
title | string | |
project_id | int | The owning project. |
type | string | categorised, or uncategorised (the system default). |
color | string | A colour key (e.g. default, success, warning, danger). |
position | int | Ordering position. |
tasks_count | int | Number of tasks in the milestone. |
List milestones
project_id is required. Other query params: type, search, sort
(milestone_title,milestone_position,milestone_created), order, limit, page.
Get a milestone
Create a milestone
| Parameter | Type | Required | Notes |
|---|---|---|---|
milestone_projectid | integer | yes | The project. |
milestone_title | string | yes | Must be unique within the project. |
milestone_color | string | yes | A colour key. |
201, type categorised).
Update a milestone
| Parameter | Type | Required |
|---|---|---|
milestone_title | string | yes |
milestone_color | string | yes |
Delete a milestone
uncategorised default cannot be deleted (409). By default the milestone’s tasks
are reassigned to the project’s default milestone; pass delete_tasks=yes to delete the tasks
instead (along with their attachments/comments/timers).
| Parameter | Type | Notes |
|---|---|---|
delete_tasks | string | yes to delete the tasks; otherwise they are reassigned. |
Reorder milestones
| Parameter | Type | Required |
|---|---|---|
milestones[] | array of ints | yes |
Errors
See Getting started. Milestone-specific:| Status | Meaning |
|---|---|
404 Not Found | The milestone id does not exist. |
409 Conflict | Duplicate title in the project, or attempting to delete the system default. |
422 Unprocessable Entity | Validation failed (missing project_id on list, missing fields, or an invalid project). |