2020-10-16 20:08:46 -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-10-16 20:08:46 -04:00
---
2021-02-08 13:09:49 -05:00
# Group iterations API **(PREMIUM)**
2020-10-16 20:08:46 -04:00
2021-02-08 13:09:49 -05:00
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/118742) in GitLab 13.5.
> - Moved to GitLab Premium in 13.9.
2020-10-16 20:08:46 -04:00
This page describes the group iterations API.
2020-11-08 22:09:03 -05:00
There's a separate [project iterations API ](iterations.md ) page.
2020-10-16 20:08:46 -04:00
## List group iterations
Returns a list of group iterations.
```plaintext
GET /groups/:id/iterations
GET /groups/:id/iterations?state=opened
GET /groups/:id/iterations?state=closed
GET /groups/:id/iterations?title=1.0
GET /groups/:id/iterations?search=version
```
| Attribute | Type | Required | Description |
| ------------------- | ------- | -------- | ----------- |
2021-06-18 20:10:16 -04:00
| `state` | string | no | 'Return `opened` , `upcoming` , `current (previously started)` , `closed` , or `all` iterations. Filtering by `started` state is deprecated starting with 14.1, please use `current` instead.' |
2020-10-16 20:08:46 -04:00
| `search` | string | no | Return only iterations with a title matching the provided string. |
| `include_ancestors` | boolean | no | Include iterations from parent group and its ancestors. Defaults to `true` . |
Example request:
```shell
curl --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/groups/5/iterations"
```
Example response:
```json
[
{
"id": 53,
"iid": 13,
2022-01-10 07:15:34 -05:00
"sequence": 1,
2020-10-16 20:08:46 -04:00
"group_id": 5,
"title": "Iteration II",
"description": "Ipsum Lorem ipsum",
"state": 2,
"created_at": "2020-01-27T05:07:12.573Z",
"updated_at": "2020-01-27T05:07:12.573Z",
"due_date": "2020-02-01",
2021-02-03 16:09:17 -05:00
"start_date": "2020-02-14",
"web_url": "http://gitlab.example.com/groups/my-group/-/iterations/13"
2020-10-16 20:08:46 -04:00
}
]
```