2020-05-26 23:08:26 -04:00
---
stage: Plan
group: Project Management
2020-11-26 01:09:20 -05:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-05-26 23:08:26 -04:00
---
2021-06-23 11:07:50 -04:00
# Group issue boards API **(FREE)**
2018-02-19 14:06:16 -05:00
2021-06-23 11:07:50 -04:00
Every API call to [group issue boards ](../user/project/issue_board.md#group-issue-boards ) must be authenticated.
2018-02-19 14:06:16 -05:00
If a user is not a member of a group and the group is private, a `GET`
2020-12-03 10:09:46 -05:00
request results in `404` status code.
2018-02-19 14:06:16 -05:00
2019-07-04 04:22:41 -04:00
## List all group issue boards in a group
2018-02-19 14:06:16 -05:00
2021-06-23 11:07:50 -04:00
Lists issue boards in the given group.
2018-02-19 14:06:16 -05:00
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
GET /groups/:id/boards
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards"
2018-02-19 14:06:16 -05:00
```
Example response:
```json
[
{
"id": 1,
2021-03-12 01:09:23 -05:00
"name": "group issue board",
2019-07-03 06:27:06 -04:00
"group": {
"id": 5,
"name": "Documentcloud",
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
2021-03-12 01:09:23 -05:00
"id": 12,
2019-07-03 06:27:06 -04:00
"title": "10.0"
},
2018-02-19 14:06:16 -05:00
"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
}
]
}
]
```
2021-01-28 16:09:04 -05:00
Users on GitLab [Premium or higher ](https://about.gitlab.com/pricing/ ) see
2019-07-04 04:22:41 -04:00
different parameters, due to the ability to have multiple group boards.
2019-07-03 05:32:54 -04:00
Example response:
```json
[
{
"id": 1,
2021-03-12 01:09:23 -05:00
"name": "group issue board",
2019-07-03 05:32:54 -04:00
"group": {
"id": 5,
"name": "Documentcloud",
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
2021-03-12 01:09:23 -05:00
"id": 12,
2019-07-03 05:32:54 -04:00
"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
}
]
}
]
```
2019-07-04 04:22:41 -04:00
## Single group issue board
2018-02-19 14:06:16 -05:00
2019-07-04 04:22:41 -04:00
Gets a single group issue board.
2018-02-19 14:06:16 -05:00
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
GET /groups/:id/boards/:board_id
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
| `board_id` | integer | yes | The ID of a board |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards/1"
2018-02-19 14:06:16 -05:00
```
Example response:
```json
{
"id": 1,
2021-03-12 01:09:23 -05:00
"name": "group issue board",
2019-07-03 06:27:06 -04:00
"group": {
"id": 5,
"name": "Documentcloud",
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
2021-03-12 01:09:23 -05:00
"id": 12,
2019-07-03 06:27:06 -04:00
"title": "10.0"
},
2018-02-19 14:06:16 -05:00
"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
}
]
}
```
2021-01-28 16:09:04 -05:00
Users on GitLab [Premium or higher ](https://about.gitlab.com/pricing/ ) see
2020-12-03 10:09:46 -05:00
different parameters, due to the ability to have multiple group issue boards.
2019-07-03 05:32:54 -04:00
Example response:
```json
{
"id": 1,
2021-03-12 01:09:23 -05:00
"name": "group issue board",
2019-07-03 05:32:54 -04:00
"group": {
"id": 5,
"name": "Documentcloud",
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
2021-03-12 01:09:23 -05:00
"id": 12,
2019-07-03 05:32:54 -04:00
"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
}
]
}
```
2019-07-08 04:50:38 -04:00
## Create a group issue board **(PREMIUM)**
2019-07-03 05:32:54 -04:00
Creates a Group Issue Board.
2020-02-27 04:09:01 -05:00
```plaintext
2019-07-03 05:32:54 -04:00
POST /groups/:id/boards
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2019-07-03 05:32:54 -04:00
| `name` | string | yes | The name of the new board |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --request POST --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards?name=newboard"
2019-07-03 05:32:54 -04:00
```
Example response:
```json
{
"id": 1,
"name": "newboard",
2020-11-04 07:09:14 -05:00
"project": null,
"lists" : [],
2019-07-03 05:32:54 -04:00
"group": {
"id": 5,
"name": "Documentcloud",
"web_url": "http://example.com/groups/documentcloud"
},
2020-11-04 07:09:14 -05:00
"milestone": null,
"assignee" : null,
"labels" : [],
"weight" : null
2019-07-03 05:32:54 -04:00
}
```
2021-01-12 07:10:49 -05:00
## Update a group issue board
2019-07-03 05:32:54 -04:00
2020-02-06 10:09:11 -05:00
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/5954) in GitLab 11.1.
2019-07-03 05:32:54 -04:00
Updates a Group Issue Board.
2020-02-27 04:09:01 -05:00
```plaintext
2019-07-03 05:32:54 -04:00
PUT /groups/:id/boards/:board_id
```
2021-01-12 07:10:49 -05:00
| Attribute | Type | Required | Description |
| ---------------------------- | -------------- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2021-01-12 07:10:49 -05:00
| `board_id` | integer | yes | The ID of a board |
| `name` | string | no | The new name of the board |
| `hide_backlog_list` | boolean | no | Hide the Open list |
| `hide_closed_list` | boolean | no | Hide the Closed list |
| `assignee_id` ** (PREMIUM)** | integer | no | The assignee the board should be scoped to |
| `milestone_id` ** (PREMIUM)** | integer | no | The milestone the board should be scoped to |
| `labels` ** (PREMIUM)** | string | no | Comma-separated list of label names which the board should be scoped to |
| `weight` ** (PREMIUM)** | integer | no | The weight range from 0 to 9, to which the board should be scoped to |
2019-07-03 05:32:54 -04:00
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
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"
2019-07-03 05:32:54 -04:00
```
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
}
```
2019-07-08 04:50:38 -04:00
## Delete a group issue board **(PREMIUM)**
2019-07-03 05:32:54 -04:00
Deletes a Group Issue Board.
2020-02-27 04:09:01 -05:00
```plaintext
2019-07-03 05:32:54 -04:00
DELETE /groups/:id/boards/:board_id
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2019-07-03 05:32:54 -04:00
| `board_id` | integer | yes | The ID of a board |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --request DELETE --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards/1"
2019-07-03 05:32:54 -04:00
```
2019-07-04 04:22:41 -04:00
## List group issue board lists
2018-02-19 14:06:16 -05:00
Get a list of the board's lists.
2018-08-10 07:07:23 -04:00
Does not include `open` and `closed` lists
2018-02-19 14:06:16 -05:00
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
GET /groups/:id/boards/:board_id/lists
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
| `board_id` | integer | yes | The ID of a board |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards/1/lists"
2018-02-19 14:06:16 -05:00
```
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-07-04 04:22:41 -04:00
## Single group issue board list
2018-02-19 14:06:16 -05:00
Get a single board list.
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
GET /groups/:id/boards/:board_id/lists/:list_id
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
| `board_id` | integer | yes | The ID of a board |
| `list_id` | integer | yes | The ID of a board's list |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards/1/lists/1"
2018-02-19 14:06:16 -05:00
```
Example response:
```json
{
"id" : 1,
"label" : {
"name" : "Testing",
"color" : "#F0AD4E",
"description" : null
},
"position" : 1
}
```
2019-07-04 04:22:41 -04:00
## New group issue board list
2018-02-19 14:06:16 -05:00
Creates a new Issue Board list.
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
POST /groups/:id/boards/:board_id/lists
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
| `board_id` | integer | yes | The ID of a board |
| `label_id` | integer | yes | The ID of a label |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --request POST --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/4/boards/12/lists?milestone_id=7"
2018-02-19 14:06:16 -05:00
```
Example response:
```json
{
2020-02-04 01:09:13 -05:00
"id": 9,
"label": null,
"position": 0,
"milestone": {
"id": 7,
"iid": 3,
"group_id": 12,
"title": "Milestone with due date",
"description": "",
"state": "active",
"created_at": "2017-09-03T07:16:28.596Z",
"updated_at": "2017-09-03T07:16:49.521Z",
"due_date": null,
"start_date": null,
"web_url": "https://gitlab.example.com/groups/issue-reproduce/-/milestones/3"
}
2018-02-19 14:06:16 -05:00
}
```
2019-07-04 04:22:41 -04:00
## Edit group issue board list
2018-02-19 14:06:16 -05:00
Updates an existing Issue Board list. This call is used to change list position.
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
PUT /groups/:id/boards/:board_id/lists/:list_id
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
| `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 |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --request PUT --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/group/5/boards/1/lists/1?position=2"
2018-02-19 14:06:16 -05:00
```
Example response:
```json
{
"id" : 1,
"label" : {
"name" : "Testing",
"color" : "#F0AD4E",
"description" : null
},
"position" : 1
}
```
2019-07-04 04:22:41 -04:00
## Delete a group issue board list
2018-02-19 14:06:16 -05:00
2021-02-15 19:09:01 -05:00
Only for administrators and group owners. Deletes the board list in question.
2018-02-19 14:06:16 -05:00
2020-02-27 04:09:01 -05:00
```plaintext
2018-02-19 14:06:16 -05:00
DELETE /groups/:id/boards/:board_id/lists/:list_id
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the group ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2018-02-19 14:06:16 -05:00
| `board_id` | integer | yes | The ID of a board |
| `list_id` | integer | yes | The ID of a board's list |
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --request DELETE --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/boards/1/lists/1"
2018-02-19 14:06:16 -05:00
```