Use this API to retrieve the events that track changes to issues, merge requests, and epics:
- Label events record who added or removed a label, and when.
- Iteration events record iteration changes for issues.
- Milestone events record milestone changes for issues and merge requests.
- State events record state changes for issues, merge requests, and epics.
- Weight events record weight changes for issues.
State events do not track the initial state (created or opened) of a resource. For a resource
that was never closed or reopened, an empty list is returned.
List all project issue label events
GET /api/v4/projects/{id}/issues/{eventable_id}/resource_label_events
Lists all label events for a specified issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
eventable_Path, | Integer or string | The IID of the issue |
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 | — |
Retrieve an issue label event
GET /api/v4/projects/{id}/issues/{eventable_id}/resource_label_events/{event_id}
Retrieves a label event for a specified project issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
event_Path, | String | The ID of a resource label event |
eventable_Path, | Integer or string | The IID of the issue |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all project issue milestone events
GET /api/v4/projects/{id}/issues/{eventable_id}/resource_milestone_events
Lists all milestone events for a specified issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
eventable_Path, | Integer or string | The ID of the eventable |
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 | — |
Retrieve an issue milestone event
GET /api/v4/projects/{id}/issues/{eventable_id}/resource_milestone_events/{event_id}
Retrieves a specified milestone event for a project issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
event_Path, | String | The ID of a resource milestone event |
eventable_Path, | Integer or string | The ID of the eventable |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
List all project issue state events
GET /api/v4/projects/{id}/issues/{eventable_id}/resource_state_events
Lists all state events for a specified issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
eventable_Path, | Integer | The IID of the issue |
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 | — |
Retrieve an issue state event
GET /api/v4/projects/{id}/issues/{eventable_id}/resource_state_events/{event_id}
Retrieves a state event for a specified project issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
eventable_Path, | Integer | The IID of the issue |
event_Path, | Integer | The ID of a resource state event |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all project merge request label events
GET /api/v4/projects/{id}/merge_requests/{eventable_id}/resource_label_events
Lists all label events for a specified merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
eventable_Path, | Integer or string | The IID of the merge request |
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 | — |
Retrieve a merge request label event
GET /api/v4/projects/{id}/merge_requests/{eventable_id}/resource_label_events/{event_id}
Retrieves a label event for a specified project merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
event_Path, | String | The ID of a resource label event |
eventable_Path, | Integer or string | The IID of the merge request |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all project merge request milestone events
GET /api/v4/projects/{id}/merge_requests/{eventable_id}/resource_milestone_events
Lists all milestone events for a specified merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
eventable_Path, | Integer or string | The ID of the eventable |
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 | — |
Retrieve a merge request milestone event
GET /api/v4/projects/{id}/merge_requests/{eventable_id}/resource_milestone_events/{event_id}
Retrieves a specified milestone event for a project merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
event_Path, | String | The ID of a resource milestone event |
eventable_Path, | Integer or string | The ID of the eventable |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
List all project merge request state events
GET /api/v4/projects/{id}/merge_requests/{eventable_id}/resource_state_events
Lists all state events for a specified merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
eventable_Path, | Integer | The IID of the merge request |
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 | — |
Retrieve a merge request state event
GET /api/v4/projects/{id}/merge_requests/{eventable_id}/resource_state_events/{event_id}
Retrieves a state event for a specified project merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | The ID of a project |
eventable_Path, | Integer | The IID of the merge request |
event_Path, | Integer | The ID of a resource state event |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
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 |
APIEntitiesLabelBasic
| Property | Type | Description |
|---|---|---|
archived | Boolean | Example:false |
color | String | Example:#FF0000 |
description | String | Example:Bug reported by user |
description_ | String | Example:<p>Bug reported by user</ |
id | Integer (int64) | Example:1 |
name | String | Example:bug |
text_ | String | Example:#FFFFFF |
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 | — |
APIEntitiesResourceLabelEvent
| Property | Type | Description |
|---|---|---|
action | String | Example:add |
created_ | String (date- | Example:2018- |
id | Integer (int64) | Example:142 |
label | APIEntities | — |
resource_ | Integer (int64) | Example:253 |
resource_ | String | Example:Issue |
user | APIEntities | — |
APIEntitiesResourceMilestoneEvent
| Property | Type | Description |
|---|---|---|
action | String | Example:add |
created_ | String (date- | Example:2018- |
id | Integer (int64) | Example:142 |
milestone | APIEntities | — |
resource_ | Integer (int64) | Example:253 |
resource_ | String | Example:Issue |
state | String | Example:active |
user | APIEntities | — |
APIEntitiesResourceStateEvent
| Property | Type | Description |
|---|---|---|
created_ | String (date- | Example:2018- |
id | Integer (int64) | Example:142 |
resource_ | Integer (int64) | Example:253 |
resource_ | String | Example:Issue |
source_ | String | Example:7b09ce7e6f80347baf03 |
source_ | Integer (int64) | Example:45 |
state | String | Example:opened |
user | APIEntities | — |
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: |