Use this API to manage milestones for both projects and groups.
List all group milestones
GET /api/v4/groups/{id}/milestones
Lists all group milestones for a specified group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
stateQuery | String | Return “active”, Allowed values: active,closed,allDefault: all |
iidsQuery | Array of integers | The IIDs of the milestones |
titleQuery | String | The title of the milestones |
searchQuery | String | The search criteria for the title or description of the milestone |
include_Query | Boolean | Deprecated:include_.include_ |
include_Query | Boolean | Include milestones from all parent groups.include_ |
updated_Query | String (date- | Return milestones updated before the specified datetime. |
updated_Query | String (date- | Return milestones updated after the specified datetime. |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
include_Query | Boolean | Include milestones from all subgroups and subprojects |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create a group milestone
POST /api/v4/groups/{id}/milestones
Creates a milestone for the specified group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
description | String | The description of the milestone |
due_ | String | The due date of the milestone. |
start_ | String | The start date of the milestone. |
titleRequired | String | The title of the milestone |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a group milestone
GET /api/v4/groups/{id}/milestones/{milestone_id}
Retrieves a specified group milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
milestone_Path, | Integer | The ID of a group milestone |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a group milestone
PUT /api/v4/groups/{id}/milestones/{milestone_id}
Updates the specified group milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
milestone_Path, | Integer | The milestone ID number |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
description | String | The description of the milestone |
due_ | String | The due date of the milestone. |
start_ | String | The start date of the milestone. |
state_ | String | The state event of the milestone Allowed values: close,activate |
title | String | The title of the milestone |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete a group milestone
DELETE /api/v4/groups/{id}/milestones/{milestone_id}
Deletes the specified group milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
milestone_Path, | Integer | The ID of a group milestone |
Responses
| Code | Description | Schema |
|---|---|---|
204 | 204 No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
List all issues assigned to a single milestone
GET /api/v4/groups/{id}/milestones/{milestone_id}/issues
Lists all issues assigned to a specified group milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
milestone_Path, | Integer | The ID of a group milestone |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all merge requests assigned to a single milestone
GET /api/v4/groups/{id}/milestones/{milestone_id}/merge_requests
Lists all merge requests assigned to a specified group milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a group |
milestone_Path, | Integer | The ID of a group milestone |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all project milestones
GET /api/v4/projects/{id}/milestones
Lists all milestones for a specified project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
stateQuery | String | Return “active”, Allowed values: active,closed,allDefault: all |
iidsQuery | Array of integers | The IIDs of the milestones |
titleQuery | String | The title of the milestones |
searchQuery | String | The search criteria for the title or description of the milestone |
include_Query | Boolean | Deprecated:include_.include_ |
include_Query | Boolean | Include milestones from all parent groups.include_ |
updated_Query | String (date- | Return milestones updated before the specified datetime. |
updated_Query | String (date- | Return milestones updated after the specified datetime. |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create a project milestone
POST /api/v4/projects/{id}/milestones
Creates a project milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
description | String | The description of the milestone |
due_ | String | The due date of the milestone. |
start_ | String | The start date of the milestone. |
titleRequired | String | The title of the milestone |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a project milestone
GET /api/v4/projects/{id}/milestones/{milestone_id}
Retrieves a specified project milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
milestone_Path, | Integer | The ID of a project milestone |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a project milestone
PUT /api/v4/projects/{id}/milestones/{milestone_id}
Updates a specified project milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
milestone_Path, | Integer | The milestone ID number |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
description | String | The description of the milestone |
due_ | String | The due date of the milestone. |
start_ | String | The start date of the milestone. |
state_ | String | The state event of the milestone Allowed values: close,activate |
title | String | The title of the milestone |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete a project milestone
DELETE /api/v4/projects/{id}/milestones/{milestone_id}
Deletes a specified project milestone. Only for users with the Planner, Reporter, Developer, Maintainer, or Owner role for the project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
milestone_Path, | Integer | The ID of a project milestone |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
List all issues for a project milestone
GET /api/v4/projects/{id}/milestones/{milestone_id}/issues
Lists all issues assigned to a specified project milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
milestone_Path, | Integer | The ID of a project milestone |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all merge requests for a project milestone
GET /api/v4/projects/{id}/milestones/{milestone_id}/merge_requests
Lists all merge requests assigned to a specified project milestone.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
milestone_Path, | Integer | The ID of a project milestone |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Promote a project milestone to a group milestone
POST /api/v4/projects/{id}/milestones/{milestone_id}/promote
Promotes a specified project milestone to a group milestone. Only for users with the Planner, Reporter, Developer, Maintainer, or Owner role for the group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
milestone_Path, | Integer | The ID of a project milestone |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesCustomAttribute
| Property | Type | Description |
|---|---|---|
key | String | Example:foo |
value | String | Example:bar |
APIEntitiesIssuableReferences
| Property | Type | Description |
|---|---|---|
full | String | Example:test&6 |
relative | String | Example:&6 |
short | String | Example:&6 |
APIEntitiesIssuableTimeStats
| Property | Type | Description |
|---|---|---|
human_ | String | Example:3h 30m |
human_ | String | Example:1h |
time_ | Integer | Example:12600 |
total_ | Integer | Example:3600 |
APIEntitiesIssueBasic
| Property | Type | Description |
|---|---|---|
assignee | APIEntities | — |
assignees | APIEntities | — |
author | APIEntities | — |
closed_ | String (date- | Example:2022- |
closed_ | APIEntities | — |
confidential | Boolean | — |
created_ | String (date- | Example:2022- |
description | String | Example:Repellendus impedit et vel velit dignissimos. |
discussion_ | Boolean | — |
downvotes | Integer | — |
due_ | String (date) | Example:2022- |
id | Integer (int64) | Example:84 |
iid | Integer | Example:14 |
issue_ | String | Example:issue |
labels | Array of strings | Example:["bug"] |
merge_ | Integer | — |
milestone | APIEntities | — |
project_ | Integer (int64) | Example:4 |
start_ | String (date) | Example:2022- |
state | String | Example:closed |
task_ | APIEntities | — |
time_ | APIEntities | — |
title | String | Example:Impedit et ut et dolores vero provident ullam est |
type | String | One of [“ISSUE”, Example: ISSUE |
updated_ | String (date- | Example:2022- |
upvotes | Integer | — |
user_ | Integer | — |
web_ | String | Example:http: |
APIEntitiesMergeRequestBasic
| Property | Type | Description |
|---|---|---|
allow_ | Boolean | — |
allow_ | Boolean | — |
assignee | APIEntities | — |
assignees | APIEntities | — |
author | APIEntities | — |
blocking_ | Boolean | — |
closed_ | String (date- | Example:2022- |
closed_ | APIEntities | — |
created_ | String (date- | Example:2022- |
description | String | Example:Repellendus impedit et vel velit dignissimos. |
description_ | String | — |
detailed_ | String | Example:mergeable |
discussion_ | Boolean | — |
downvotes | Integer | — |
draft | Boolean | — |
force_ | Boolean | — |
has_ | Boolean | — |
id | Integer (int64) | Example:84 |
iid | Integer | Example:14 |
imported | Boolean | — |
imported_ | String | Example:bitbucket |
labels | Array of strings | — |
merge_ | String (date- | Example:2022- |
merge_ | String | Example:1234abcd |
merge_ | String | Example:unchecked |
merge_ | APIEntities | — |
merge_ | Boolean | — |
merged_ | String (date- | Example:2022- |
merged_ | APIEntities | — |
milestone | APIEntities | — |
prepared_ | String (date- | Example:2022- |
project_ | Integer (int64) | Example:4 |
reference | String | Example:!1 |
references | APIEntities | — |
reviewers | APIEntities | — |
sha | String | Example:1234abcd |
should_ | Boolean | — |
source_ | String | — |
source_ | Integer (int64) | — |
squash | Boolean | — |
squash_ | String | Example:1234abcd |
squash_ | Boolean | — |
state | String | Example:closed |
target_ | String | — |
target_ | Integer (int64) | — |
task_ | APIEntities | — |
time_ | APIEntities | — |
title | String | Example:Impedit et ut et dolores vero provident ullam est |
title_ | String | — |
updated_ | String (date- | Example:2022- |
upvotes | Integer | — |
user_ | Integer | — |
web_ | String | Example:https: |
work_ | Boolean | — |
APIEntitiesMilestone
| Property | Type | Description |
|---|---|---|
created_ | String | — |
description | String | — |
due_ | String | — |
expired | Boolean | — |
group_ | String | — |
id | Integer (int64) | — |
iid | Integer (int64) | — |
project_ | Integer (int64) | — |
start_ | String | — |
state | String | — |
title | String | — |
updated_ | String | — |
web_ | String | — |
APIEntitiesTaskCompletionStatus
| Property | Type | Description |
|---|---|---|
completed_ | Integer | Example:3 |
count | Integer | Example:5 |
APIEntitiesUserBasic
| Property | Type | Description |
|---|---|---|
avatar_ | String | Example:/ |
avatar_ | String | Example:https: |
custom_ | Array of APIEntities | — |
id | Integer (int64) | Example:1 |
locked | Boolean | — |
name | String | Example:Administrator |
public_ | String | Example:john@example. |
state | String | Example:active |
username | String | Example:admin |
web_ | String | Example:https: |