2018-03-27 19:54:05 +05:30
|
|
|
# Group Issue Boards API
|
|
|
|
|
|
|
|
Every API call to group boards must be authenticated.
|
|
|
|
|
|
|
|
If a user is not a member of a group and the group is private, a `GET`
|
|
|
|
request will result in `404` status code.
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## List all group issue boards in a group
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
Lists Issue Boards in the given group.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /groups/:id/boards
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": 1,
|
2019-09-30 21:07:59 +05:30
|
|
|
"name:": "group issue board",
|
|
|
|
"group": {
|
|
|
|
"id": 5,
|
|
|
|
"name": "Documentcloud",
|
|
|
|
"web_url": "http://example.com/groups/documentcloud"
|
|
|
|
},
|
|
|
|
"milestone": {
|
|
|
|
"id": 12
|
|
|
|
"title": "10.0"
|
|
|
|
},
|
|
|
|
"lists" : [
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 2,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Ready",
|
|
|
|
"color" : "#FF0000",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 3,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Production",
|
|
|
|
"color" : "#FF5F00",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
Users on GitLab [Premium, Silver, or higher](https://about.gitlab.com/pricing/) will see
|
|
|
|
different parameters, due to the ability to have multiple group boards.
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"name:": "group issue board",
|
|
|
|
"group": {
|
|
|
|
"id": 5,
|
|
|
|
"name": "Documentcloud",
|
|
|
|
"web_url": "http://example.com/groups/documentcloud"
|
|
|
|
},
|
|
|
|
"milestone": {
|
|
|
|
"id": 12
|
|
|
|
"title": "10.0"
|
|
|
|
},
|
2018-03-27 19:54:05 +05:30
|
|
|
"lists" : [
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 2,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Ready",
|
|
|
|
"color" : "#FF0000",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 3,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Production",
|
|
|
|
"color" : "#FF5F00",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## Single group issue board
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
Gets a single group issue board.
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
```
|
|
|
|
GET /groups/:id/boards/:board_id
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
2019-09-30 21:07:59 +05:30
|
|
|
"name:": "group issue board",
|
|
|
|
"group": {
|
|
|
|
"id": 5,
|
|
|
|
"name": "Documentcloud",
|
|
|
|
"web_url": "http://example.com/groups/documentcloud"
|
|
|
|
},
|
|
|
|
"milestone": {
|
|
|
|
"id": 12
|
|
|
|
"title": "10.0"
|
|
|
|
},
|
|
|
|
"lists" : [
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 2,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Ready",
|
|
|
|
"color" : "#FF0000",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 3,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Production",
|
|
|
|
"color" : "#FF5F00",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Users on GitLab [Premium, Silver, or higher](https://about.gitlab.com/pricing/) will see
|
|
|
|
different parameters, due to the ability to have multiple group issue boards.s
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"name:": "group issue board",
|
|
|
|
"group": {
|
|
|
|
"id": 5,
|
|
|
|
"name": "Documentcloud",
|
|
|
|
"web_url": "http://example.com/groups/documentcloud"
|
|
|
|
},
|
|
|
|
"milestone": {
|
|
|
|
"id": 12
|
|
|
|
"title": "10.0"
|
|
|
|
},
|
2018-03-27 19:54:05 +05:30
|
|
|
"lists" : [
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 2,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Ready",
|
|
|
|
"color" : "#FF0000",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 3,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Production",
|
|
|
|
"color" : "#FF5F00",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## Create a group issue board **(PREMIUM)**
|
|
|
|
|
|
|
|
Creates a Group Issue Board.
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /groups/:id/boards
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `name` | string | yes | The name of the new board |
|
|
|
|
|
|
|
|
```bash
|
|
|
|
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards?name=newboard
|
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"name": "newboard",
|
|
|
|
"group": {
|
|
|
|
"id": 5,
|
|
|
|
"name": "Documentcloud",
|
|
|
|
"web_url": "http://example.com/groups/documentcloud"
|
|
|
|
},
|
|
|
|
"milestone": {
|
|
|
|
"id": 12
|
|
|
|
"title": "10.0"
|
|
|
|
},
|
|
|
|
"lists" : [
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 2,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Ready",
|
|
|
|
"color" : "#FF0000",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 3,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Production",
|
|
|
|
"color" : "#FF5F00",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Update a group issue board **(PREMIUM)**
|
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/merge_requests/5954) in GitLab 11.1.
|
2019-09-30 21:07:59 +05:30
|
|
|
|
|
|
|
Updates a Group Issue Board.
|
|
|
|
|
|
|
|
```
|
|
|
|
PUT /groups/:id/boards/:board_id
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| ------------------- | -------------- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
| `name` | string | no | The new name of the board |
|
|
|
|
| `assignee_id` | integer | no | The assignee the board should be scoped to |
|
|
|
|
| `milestone_id` | integer | no | The milestone the board should be scoped to |
|
|
|
|
| `labels` | string | no | Comma-separated list of label names which the board should be scoped to |
|
|
|
|
| `weight` | integer | no | The weight range from 0 to 9, to which the board should be scoped to |
|
|
|
|
|
|
|
|
```bash
|
|
|
|
curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1?name=new_name&milestone_id=44&assignee_id=1&labels=GroupLabel&weight=4
|
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"project": null,
|
|
|
|
"lists": [],
|
|
|
|
"name": "new_name",
|
|
|
|
"group": {
|
|
|
|
"id": 5,
|
|
|
|
"name": "Documentcloud",
|
|
|
|
"web_url": "http://example.com/groups/documentcloud"
|
|
|
|
},
|
|
|
|
"milestone": {
|
|
|
|
"id": 44,
|
|
|
|
"iid": 1,
|
|
|
|
"group_id": 5,
|
|
|
|
"title": "Group Milestone",
|
|
|
|
"description": "Group Milestone Desc",
|
|
|
|
"state": "active",
|
|
|
|
"created_at": "2018-07-03T07:15:19.271Z",
|
|
|
|
"updated_at": "2018-07-03T07:15:19.271Z",
|
|
|
|
"due_date": null,
|
|
|
|
"start_date": null,
|
|
|
|
"web_url": "http://example.com/groups/documentcloud/-/milestones/1"
|
|
|
|
},
|
|
|
|
"assignee": {
|
|
|
|
"id": 1,
|
|
|
|
"name": "Administrator",
|
|
|
|
"username": "root",
|
|
|
|
"state": "active",
|
|
|
|
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
|
|
|
|
"web_url": "http://example.com/root"
|
|
|
|
},
|
|
|
|
"labels": [{
|
|
|
|
"id": 11,
|
|
|
|
"name": "GroupLabel",
|
|
|
|
"color": "#428BCA",
|
|
|
|
"description": ""
|
|
|
|
}],
|
|
|
|
"weight": 4
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Delete a group issue board **(PREMIUM)**
|
|
|
|
|
|
|
|
Deletes a Group Issue Board.
|
|
|
|
|
|
|
|
```
|
|
|
|
DELETE /groups/:id/boards/:board_id
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
|
|
|
|
```bash
|
|
|
|
curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1
|
|
|
|
```
|
|
|
|
|
|
|
|
## List group issue board lists
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
Get a list of the board's lists.
|
2018-11-20 20:47:30 +05:30
|
|
|
Does not include `open` and `closed` lists
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
```
|
|
|
|
GET /groups/:id/boards/:board_id/lists
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1/lists
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 2,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Ready",
|
|
|
|
"color" : "#FF0000",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : 3,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Production",
|
|
|
|
"color" : "#FF5F00",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## Single group issue board list
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
Get a single board list.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /groups/:id/boards/:board_id/lists/:list_id
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
| `list_id` | integer | yes | The ID of a board's list |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1/lists/1
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## New group issue board list
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
Creates a new Issue Board list.
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /groups/:id/boards/:board_id/lists
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
| `label_id` | integer | yes | The ID of a label |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1/lists?label_id=5
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## Edit group issue board list
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
Updates an existing Issue Board list. This call is used to change list position.
|
|
|
|
|
|
|
|
```
|
|
|
|
PUT /groups/:id/boards/:board_id/lists/:list_id
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
| `list_id` | integer | yes | The ID of a board's list |
|
|
|
|
| `position` | integer | yes | The position of the list |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/group/5/boards/1/lists/1?position=2
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id" : 1,
|
|
|
|
"label" : {
|
|
|
|
"name" : "Testing",
|
|
|
|
"color" : "#F0AD4E",
|
|
|
|
"description" : null
|
|
|
|
},
|
|
|
|
"position" : 1
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
## Delete a group issue board list
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
Only for admins and group owners. Deletes the board list in question.
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
```
|
|
|
|
DELETE /groups/:id/boards/:board_id/lists/:list_id
|
|
|
|
```
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) owned by the authenticated user |
|
|
|
|
| `board_id` | integer | yes | The ID of a board |
|
|
|
|
| `list_id` | integer | yes | The ID of a board's list |
|
|
|
|
|
|
|
|
```bash
|
2019-02-15 15:39:39 +05:30
|
|
|
curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1/lists/1
|
2018-03-27 19:54:05 +05:30
|
|
|
```
|