프로젝트 반복 API

Tier: Premium, Ultimate Offering: GitLab.com, Self-managed, GitLab Dedicated
  • GitLab 13.5에서 소개되었습니다.
  • GitLab 13.9에서 GitLab Premium으로 이동되었습니다.

이 페이지에서는 프로젝트 반복 API에 대해 설명합니다. 별도의 그룹 반복 API 페이지도 있습니다.

GitLab 13.5부터, 프로젝트 수준의 반복은 없지만, 이 엔드포인트를 사용하여 프로젝트의 상위 그룹의 반복을 가져올 수 있습니다.

프로젝트 반복 디렉터리

프로젝트 반복 디렉터리을 반환합니다.

반복 주기자동 일정 설정으로 생성된 반복은 titledescription 필드에 대해 null을 반환합니다.

GET /projects/:id/iterations
GET /projects/:id/iterations?state=opened
GET /projects/:id/iterations?state=closed
GET /projects/:id/iterations?search=version
GET /projects/:id/iterations?include_ancestors=false
GET /projects/:id/iterations?include_descendants=true
GET /projects/:id/iterations?updated_before=2013-10-02T09%3A24%3A18Z
GET /projects/:id/iterations?updated_after=2013-10-02T09%3A24%3A18Z
속성 유형 필요 여부 설명
state 문자열 아니요 opened, upcoming, current, closed, 또는 all 반복’을 반환합니다.
search 문자열 아니요 제공된 문자열과 일치하는 제목을 가진 반복만을 반환합니다.
in 문자열 배열 아니요 퍼지 검색이 수행될 필드 및 제공된 쿼리와 함께 사용될 필드입니다. 가능한 옵션은 titlecadence_title입니다. 기본값은 [title]입니다. GitLab 16.2에서 소개되었습니다.
include_ancestors 부울형 아니요 상위 그룹 및 그 조상의 반복을 포함할지 여부를 나타냅니다. 기본값은 true입니다.
include_descendants 부울형 아니요 상위 그룹 및 그 하위의 반복을 포함할지 여부를 나타냅니다. 기본값은 false입니다. GitLab 16.7에서 소개되었습니다.
updated_before 날짜 및 시간 아니요 주어진 날짜 및 시간 이전에 업데이트된 반복만을 반환합니다. ISO 8601 형식(2019-03-15T08:00:00Z)으로 예상됩니다. GitLab 15.10에서 소개되었습니다.
updated_after 날짜 및 시간 아니요 주어진 날짜 및 시간 이후에 업데이트된 반복만을 반환합니다. ISO 8601 형식(2019-03-15T08:00:00Z)으로 예상됩니다. GitLab 15.10에서 소개되었습니다.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/iterations"

예시 응답:

[
  {
    "id": 53,
    "iid": 13,
    "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",
    "start_date": "2020-02-14",
    "web_url": "http://gitlab.example.com/groups/my-group/-/iterations/13"
  }
]