이슈 API

Tier: Free, Premium, Ultimate Offering: GitLab.com, Self-Managed, GitLab Dedicated

GitLab Issues와 상호 작용하기 위해 REST API를 사용합니다.

사용자가 비공개 프로젝트의 멤버가 아닌 경우, 해당 프로젝트에 대한 GET 요청은 404 상태 코드를 반환합니다.

이슈 페이지네이션

기본적으로 GET 요청은 API 결과가 페이지로 구분되기 때문에 한 번에 20개의 결과를 반환합니다. 페이지네이션에서 자세히 알아보세요.

note
references.relative 속성은 요청된 이슈의 그룹 또는 프로젝트와 관련이 있습니다. 이슈가 해당 프로젝트에서 검색될 때, relative 포맷은 short 포맷과 동일합니다. 그룹 또는 프로젝트 간에 요청될 때는 full 포맷과 같은 것으로 예상됩니다.

이슈 디렉터리

인증된 사용자가 접근할 수 있는 모든 이슈를 가져옵니다. 기본적으로 현재 사용자가 생성한 이슈만 반환합니다. 모든 이슈를 얻으려면 scope=all 매개변수를 사용하세요.

GET /issues
GET /issues?assignee_id=5
GET /issues?author_id=5
GET /issues?confidential=true
GET /issues?iids[]=42&iids[]=43
GET /issues?labels=foo
GET /issues?labels=foo,bar
GET /issues?labels=foo,bar&state=opened
GET /issues?milestone=1.0.0
GET /issues?milestone=1.0.0&state=opened
GET /issues?my_reaction_emoji=star
GET /issues?search=foo&in=title
GET /issues?state=closed
GET /issues?state=opened

지원되는 속성:

속성 타입 필수 여부 설명
assignee_id 정수 아니요 지정된 사용자 id에 할당된 이슈를 반환합니다. assignee_username과 상호 배타적입니다. None은 지정되지 않은 이슈를 반환합니다. Any는 담당자가 있는 이슈를 반환합니다.
assignee_username 문자열 배열 아니요 지정된 username에 할당된 이슈를 반환합니다. assignee_id와 상호 배타적입니다. GitLab CE에서 assignee_username 배열은 단일 값만 포함해야 합니다. 그렇지 않으면 유효하지 않은 매개변수 오류가 반환됩니다.
author_id 정수 아니요 특정 사용자 id가 생성한 이슈를 반환합니다. author_username과 상호 배타적입니다. scope=all 또는 scope=assigned_to_me와 함께 사용합니다.
author_username 문자열 아니요 특정 username이 생성한 이슈를 반환합니다. author_id와 상호 배타적입니다.
confidential 부울 아니요 비밀 또는 공개 이슈를 필터링합니다.
created_after 날짜 및 시간 아니요 주어진 시간 이후에 생성된 이슈를 반환합니다. ISO 8601 포맷(2019-03-15T08:00:00Z)으로 제공됩니다.
created_before 날짜와 시간 아니요 주어진 시간 이전에 생성된 이슈를 반환합니다. ISO 8601 포맷(2019-03-15T08:00:00Z)으로 제공됩니다.
due_date 문자열 아니요 마감일이 없는 이슈, 마감일이 지난 이슈 또는 이번 주, 이번 달 또는 지난 2주와 다음 달 사이에 마감일이있는 이슈를 반환합니다. 0 (마감일 없음), any, today, tomorrow, overdue, week, month, next_month_and_previous_two_weeks 값을 허용합니다.
epic_id 정수 아니요 지정된 에픽 ID와 연관된 이슈를 반환합니다. None은 에픽과 연관되지 않은 이슈를 반환합니다. Any는 에픽과 연관된 이슈를 반환합니다. Premium 및 Ultimate 전용입니다.
health_status 문자열 아니요 지정된 health_status를 갖는 이슈를 반환합니다. (소개됨 in GitLab 15.4). GitLab 15.5 및 이후에서 None은 할당된 건강 상태가 없는 이슈를 반환하고, Any는 건강 상태가 할당된 이슈를 반환합니다. Ultimate 전용입니다.
iids[] 정수 배열 아니요 주어진 iid를 가진 이슈만 반환합니다.
in 문자열 아니요 search 속성의 범위를 수정합니다. title, description 또는 쉼표로 연결된 문자열 중 하나입니다. 기본값은 title,description입니다.
issue_type 문자열 아니요 특정 유형의 이슈로 필터링합니다. issue, incident, test_case 또는 task 중 하나입니다.
iteration_id 정수 아니요 주어진 반복 ID에 할당된 이슈를 반환합니다. None은 반복에 속하지 않는 이슈를 반환합니다. Any은 반복에 속한 이슈를 반환합니다. iteration_title과 상호 배타적입니다. Premium 및 Ultimate 전용입니다.
iteration_title 문자열 아니요 주어진 제목의 반복에 할당된 이슈를 반환합니다. iteration_id와 상호 배타적입니다. Premium 및 Ultimate 전용입니다.
labels 문자열 아니요 라벨 이름의 쉼표로 구분된 디렉터리입니다. 반환되려면 모든 라벨을 가져야 합니다. None은 라벨이 없는 모든 이슈를 나열합니다. Any는 하나 이상의 라벨이 있는 모든 이슈를 나열합니다. No+Label (사용 중단됨)은 라벨이 없는 모든 이슈를 나열합니다. 미리 정의된 이름은 대소문자를 구분하지 않습니다.
milestone_id 문자열 아니요 지정된 타임박스 값(None, Any, Upcoming, Started)에 할당된 마일스톤에 대한 이슈를 반환합니다. None은 마일스톤이없는 모든 이슈를 나열합니다. Any는 할당된 마일스톤이 있는 모든 이슈를 나열합니다. Upcoming은 미래에 마감되는 마일스톤에 할당된 모든 이슈를 나열합니다. Started는 열려 있는 시작된 마일스톤에 할당된 모든 이슈를 나열합니다. milestonemilestone_id는 상호 배타적입니다.
milestone 문자열 아니요 마일스톤 제목입니다. None은 마일스톤이없는 모든 이슈를 나열합니다. Any는 할당된 마일스톤이 있는 모든 이슈를 나열합니다. 앞으로 None 또는 Any향후 사용되지 않을 예정입니다. 대신 milestone_id 속성을 사용하세요. milestonemilestone_id는 상호 배타적입니다.
my_reaction_emoji 문자열 아니요 지정된 emoji로 인증 된 사용자가 반응한 이슈를 반환합니다. None은 반응하지 않은 이슈를 반환합니다. Any는 하나 이상의 반응이있는 이슈를 반환합니다.
non_archived 부울 아니요 비보관된 프로젝트에서만 이슈를 반환합니다. false인 경우 응답은 보관 및 비보관 프로젝트에서 모두 이슈를 반환합니다. 기본값은 true입니다.
not 해시 아니요 제공된 매개변수와 일치하지 않는 이슈를 반환합니다. assignee_id, assignee_username, author_id, author_username, iids, iteration_id, iteration_title, labels, milestone, milestone_id, weight을 허용합니다.
order_by 문자열 아니요 이슈를 created_at, due_date, label_priority, milestone_due, popularity, priority, relative_position, title, updated_at, 또는 weight 필드로 정렬해서 반환합니다. 기본값은 created_at입니다.
scope 문자열 아니요 주어진 범위의 이슈를 반환합니다: created_by_me, assigned_to_me, all. 기본값은 created_by_me입니다.
search 문자열 아니요 titledescription에 대한 이슈를 검색합니다.
sort 문자열 아니요 asc 또는 desc 순서로 정렬된 이슈를 반환합니다. 기본값은 desc입니다.
state 문자열 아니요 all 이슈 또는 opened 또는 closed 상태인 이슈를 반환합니다.
updated_after 날짜 및 시간 아니요 주어진 시간 이후에 업데이트된 이슈를 반환합니다. ISO 8601 포맷(2019-03-15T08:00:00Z)으로 제공됩니다.
updated_before 날짜 및 시간 아니요 주어진 시간 이전에 업데이트된 이슈를 반환합니다. ISO 8601 포맷(2019-03-15T08:00:00Z)으로 제공됩니다.
weight 정수 아니요 지정된 weight가 있는 이슈를 반환합니다. None은 가중치가 지정되지 않은 이슈를 반환합니다. Any는 가중치가 지정된 이슈를 반환합니다. Premium 및 Ultimate 전용입니다.
with_labels_details 부울 아니요 true이면 응답은 라벨 필드의 각 자세한 정보를 반환합니다: :name, :color, :description, :description_html, :text_color. 기본값은 false입니다.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/issues"

예시 응답:

[
   {
      "state" : "opened",
      "description" : "Ratione dolores corrupti mollitia soluta quia.",
      "author" : {
         "state" : "active",
         "id" : 18,
         "web_url" : "https://gitlab.example.com/eileen.lowe",
         "name" : "Alexandra Bashirian",
         "avatar_url" : null,
         "username" : "eileen.lowe"
      },
      "milestone" : {
         "project_id" : 1,
         "description" : "Ducimus nam enim ex consequatur cumque ratione.",
         "state" : "closed",
         "due_date" : null,
         "iid" : 2,
         "created_at" : "2016-01-04T15:31:39.996Z",
         "title" : "v4.0",
         "id" : 17,
         "updated_at" : "2016-01-04T15:31:39.996Z"
      },
      ...
   }
]

GitLab Premium 또는 Ultimate에서 생성된 이슈는 weight 속성이 포함됩니다:

[
   {
      "state" : "opened",
      "description" : "Ratione dolores corrupti mollitia soluta quia.",
      "weight": null,
      ...
   }
]

GitLab Premium 또는 Ultimate에서 생성된 이슈는 epic 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //deprecated, use `iid` of the `epic` attribute
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Premium 또는 Ultimate에서 생성된 이슈는 iteration 속성이 포함됩니다:

{
   "iteration": {
      "id":90,
      "iid":4,
      "sequence":2,
      "group_id":162,
      "title":null,
      "description":null,
      "state":2,
      "created_at":"2022-03-14T05:21:11.929Z",
      "updated_at":"2022-03-14T05:21:11.929Z",
      "start_date":"2022-03-08",
      "due_date":"2022-03-14",
      "web_url":"https://gitlab.com/groups/my-group/-/iterations/90"
   }
   ...
}

GitLab Ultimate에서 생성된 이슈는 health_status 속성이 포함됩니다:

[
   {
      "state" : "opened",
      "description" : "Ratione dolores corrupti mollitia soluta quia.",
      "health_status": "on_track",
      ...
   }
]
caution
assignee 열은 사용되지 않습니다. 이제 GitLab EE API에 맞게 단일 크기의 배열 assignees로 표시합니다.
caution
epic_iid 속성은 폐기 예정이며 제거 예정입니다. 대신 epic 속성의 iid를 사용하세요.

그룹 이슈 디렉터리

특정 그룹의 이슈 디렉터리을 가져옵니다.

그룹이 비공개인 경우, 권한 부여를 위해 자격 증명을 제공해야 합니다. 이를 위한 우선적인 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /groups/:id/issues
GET /groups/:id/issues?assignee_id=5
GET /groups/:id/issues?author_id=5
GET /groups/:id/issues?confidential=true
GET /groups/:id/issues?iids[]=42&iids[]=43
GET /groups/:id/issues?labels=foo
GET /groups/:id/issues?labels=foo,bar
GET /groups/:id/issues?labels=foo,bar&state=opened
GET /groups/:id/issues?milestone=1.0.0
GET /groups/:id/issues?milestone=1.0.0&state=opened
GET /groups/:id/issues?my_reaction_emoji=star
GET /groups/:id/issues?search=issue+title+or+description
GET /groups/:id/issues?state=closed
GET /groups/:id/issues?state=opened

지원되는 속성:

속성 유형 필수 여부 설명
id 정수/문자열 인증된 사용자가 소유한 그룹의 전역 ID 또는 URL-인코드된 경로
assignee_id 정수 아니오 지정된 사용자 id에 할당된 이슈를 반환합니다. assignee_username과 상호 배타적입니다. None은 미지정된 이슈를 반환합니다. Any는 담당자가 지정된 이슈를 반환합니다.
assignee_username 문자열 배열 아니오 지정된 username에 할당된 이슈를 반환합니다. assignee_id와 상호 배타적입니다. GitLab CE에서 assignee_username 배열은 하나의 값만 포함해야 합니다. 그렇지 않으면 잘못된 매개변수 오류가 반환됩니다.
author_id 정수 아니오 지정된 사용자 id가 생성한 이슈를 반환합니다. author_username과 상호 배타적입니다. scope=all 또는 scope=assigned_to_me과 결합합니다.
author_username 문자열 아니오 지정된 username이 생성한 이슈를 반환합니다. author_id와 상호 배타적입니다.
confidential 부울 아니오 비밀 여부이거나 공개 이슈를 필터링합니다.
created_after 일시 아니오 주어진 시간 이후에 생성된 이슈를 반환합니다. ISO 8601 형식(2019-03-15T08:00:00Z)으로 예상합니다.
created_before 일시 아니오 주어진 시간 이전에 생성된 이슈를 반환합니다. ISO 8601 형식(2019-03-15T08:00:00Z)으로 예상합니다.
due_date 문자열 아니오 마감일이 없거나 마감일이 지난, 또는 이번 주, 이번 달 또는 지난 이주부터 다음 달 사이의 마감일을 가진 이슈를 반환합니다. 0 (마감일 없음), any, today, tomorrow, overdue, week, month, next_month_and_previous_two_weeks를 허용합니다.
epic_id 정수 아니오 주어진 에픽 ID와 관련된 이슈를 반환합니다. None은 에픽과 관련이 없는 이슈를 반환합니다. Any는 에픽과 관련된 이슈를 반환합니다. Only Premium and Ultimate.
iids[] 정수 배열 아니오 주어진 iid를 가진 이슈만 반환합니다.
issue_type 문자열 아니오 특정 유형의 이슈를 필터링합니다. issue, incident, test_case 또는 task 중 하나입니다.
iteration_id 정수 아니오 주어진 반복 ID에 할당된 이슈를 반환합니다. None은 반복에 속하지 않는 이슈를 반환합니다. Any는 반복에 속한 이슈를 반환합니다. 상호 배타적입니다 iteration_title과 상호 배타적입니다. Only Premium and Ultimate.
iteration_title 문자열 아니오 주어진 제목을 가진 반복에 할당된 이슈를 반환합니다. iteration_id와 상호 배타적입니다. Only Premium and Ultimate.
labels 문자열 아니오 라벨 이름의 쉼표로 구분된 디렉터리으로, 모든 라벨을 가진 이슈만 반환합니다. None은 라벨이 없는 모든 이슈를 나열합니다. Any은 적어도 하나의 라벨이 있는 모든 이슈를 나열합니다. No+Label (폐기됨)는 라벨이 없는 모든 이슈를 나열합니다. 미리 정의된 이름은 대소문자를 구분하지 않습니다.
milestone 문자열 아니오 마일스톤 제목입니다. None은 마일스톤이 지정되지 않은 모든 이슈를 나열합니다. Any은 할당된 마일스톤이 있는 모든 이슈를 나열합니다.
my_reaction_emoji 문자열 아니오 주어진 emoji로 인증된 사용자가 반응한 이슈를 반환합니다. None은 반응이 없는 이슈를 반환합니다. Any는 적어도 하나의 반응이 있는 이슈를 반환합니다.
non_archived 부울 아니오 아카이브되지 않은 프로젝트에서 이슈를 반환합니다. 기본값은 true입니다.
not 해시 아니오 제공된 매개변수와 일치하지 않는 이슈를 반환합니다. labels, milestone, author_id, author_username, assignee_id, assignee_username, my_reaction_emoji, search, in을 허용합니다.
order_by 문자열 아니오 created_at, updated_at, priority, due_date, relative_position, label_priority, milestone_due, popularity, weight 필드로 정렬된 이슈를 반환합니다. 기본값은 created_at입니다.
scope 문자열 아니오 주어진 범위에 대한 이슈를 반환합니다: created_by_me, assigned_to_me, all. 기본값은 all입니다.
search 문자열 아니오 그룹 이슈를 titledescription에 대해 검색합니다.
sort 문자열 아니오 asc 또는 desc 순서로 정렬된 이슈를 반환합니다. 기본값은 desc입니다.
state 문자열 아니오 모든 이슈를 반환하거나 opened 또는 closed인 이슈만 반환합니다.
updated_after 일시 아니오 주어진 시간 이후에 업데이트된 이슈를 반환합니다. ISO 8601 형식(2019-03-15T08:00:00Z)으로 예상합니다.
updated_before 일시 아니오 주어진 시간 이전에 업데이트된 이슈를 반환합니다. ISO 8601 형식(2019-03-15T08:00:00Z)으로 예상합니다.
weight 정수 아니오 지정된 weight가 있는 이슈를 반환합니다. None은 가중치가 할당되지 않은 이슈를 반환합니다. Any은 가중치가 할당된 이슈를 반환합니다. Only Premium and Ultimate.
with_labels_details 부울 아니오 true인 경우, 응답은 labels 필드의 각 라벨에 대해 더 많은 세부 정보를 반환합니다: :name, :color, :description, :description_html, :text_color. 기본값은 false입니다.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/groups/4/issues"

예시 응답:

[
   {
      "project_id" : 4,
      "milestone" : {
         "due_date" : null,
         "project_id" : 4,
         "state" : "closed",
         "description" : "Rerum est voluptatem provident consequuntur molestias similique ipsum dolor.",
         "iid" : 3,
         "id" : 11,
         "title" : "v3.0",
         "created_at" : "2016-01-04T15:31:39.788Z",
         "updated_at" : "2016-01-04T15:31:39.788Z"
      },
      "author" : {
         "state" : "active",
         "web_url" : "https://gitlab.example.com/root",
         "avatar_url" : null,
         "username" : "root",
         "id" : 1,
         "name" : "Administrator"
      },
      ...
   }
]

GitLab Premium 또는 Ultimate에서 생성된 사용자의 이슈는 weight 속성을 포함합니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "weight": null,
      ...
   }
]

GitLab Premium 또는 Ultimate에서 생성된 사용자의 이슈는 epic 속성을 포함합니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //deprecated, use `epic` attribute의 `iid`를 사용합니다.
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate에서 생성된 사용자의 이슈는 health_status 속성을 포함합니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "at_risk",
      ...
   }
]
caution
assignee 열은 폐기되었습니다. 이제 GitLab EE API에 맞추기 위해 단일 크기의 배열 assignees로 표시됩니다.
caution
epic_iid 속성은 폐기되었으며 API 버전 5에서 제거 예정입니다. 대신 epic 속성의 iid를 사용하십시오.

프로젝트 이슈 디렉터리

프로젝트의 이슈 디렉터리을 가져옵니다.

프로젝트가 비공개인 경우 권한 부여를 위해 자격 증명을 제공해야 합니다. 이를 하는 선호하는 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /projects/:id/issues
GET /projects/:id/issues?assignee_id=5
GET /projects/:id/issues?author_id=5
GET /projects/:id/issues?confidential=true
GET /projects/:id/issues?iids[]=42&iids[]=43
GET /projects/:id/issues?labels=foo
GET /projects/:id/issues?labels=foo,bar
GET /projects/:id/issues?labels=foo,bar&state=opened
GET /projects/:id/issues?milestone=1.0.0
GET /projects/:id/issues?milestone=1.0.0&state=opened
GET /projects/:id/issues?my_reaction_emoji=star
GET /projects/:id/issues?search=issue+title+or+description
GET /projects/:id/issues?state=closed
GET /projects/:id/issues?state=opened

지원되는 속성:

| 속성 | 유형 | 필수 여부 | 설명 | | ——————- | —————— | ———- | —————————————————————————————————————– | | id | 정수/문자열 | 예 | 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩 된 경로. | … … … (중략) …

단일 이슈

관리자 전용입니다.

단일 이슈를 가져옵니다.

이를 수행하는 선호하는 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /issues/:id

지원되는 속성:

속성 유형 필수여부 설명
id 정수 이슈의 ID입니다.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/issues/41"

예시 응답:

{
  "id": 1,
  "milestone": {
    "due_date": null,
    "project_id": 4,
    "state": "closed",
    "description": "Rerum est voluptatem provident consequuntur molestias similique ipsum dolor.",
    "iid": 3,
    "id": 11,
    "title": "v3.0",
    "created_at": "2016-01-04T15:31:39.788Z",
    "updated_at": "2016-01-04T15:31:39.788Z",
    "closed_at": "2016-01-05T15:31:46.176Z"
  },
  "author": {
    "state": "active",
    "web_url": "https://gitlab.example.com/root",
    "avatar_url": null,
    "username": "root",
    "id": 1,
    "name": "Administrator"
  },
  "description": "Omnis vero earum sunt corporis dolor et placeat.",
  "state": "closed",
  "iid": 1,
  "assignees": [
    {
      "avatar_url": null,
      "web_url": "https://gitlab.example.com/lennie",
      "state": "active",
      "username": "lennie",
      "id": 9,
      "name": "Dr. Luella Kovacek"
    }
  ],
  "assignee": {
    "avatar_url": null,
    "web_url": "https://gitlab.example.com/lennie",
    "state": "active",
    "username": "lennie",
    "id": 9,
    "name": "Dr. Luella Kovacek"
  },
  "type": "ISSUE",
  "labels": [],
  "upvotes": 4,
  "downvotes": 0,
  "merge_requests_count": 0,
  "title": "Ut commodi ullam eos dolores perferendis nihil sunt.",
  "updated_at": "2016-01-04T15:31:46.176Z",
  "created_at": "2016-01-04T15:31:46.176Z",
  "closed_at": null,
  "closed_by": null,
  "subscribed": false,
  "user_notes_count": 1,
  "due_date": null,
  "imported": false,
  "imported_from": "none",
  "web_url": "http://example.com/my-group/my-project/issues/1",
  "references": {
    "short": "#1",
    "relative": "#1",
    "full": "my-group/my-project#1"
  },
  "time_stats": {
    "time_estimate": 0,
    "total_time_spent": 0,
    "human_time_estimate": null,
    "human_total_time_spent": null
  },
  "confidential": false,
  "discussion_locked": false,
  "issue_type": "issue",
  "severity": "UNKNOWN",
  "task_completion_status": {
    "count": 0,
    "completed_count": 0
  },
  "weight": null,
  "has_tasks": false,
  "_links": {
    "self": "http://gitlab.example:3000/api/v4/projects/1/issues/1",
    "notes": "http://gitlab.example:3000/api/v4/projects/1/issues/1/notes",
    "award_emoji": "http://gitlab.example:3000/api/v4/projects/1/issues/1/award_emoji",
    "project": "http://gitlab.example:3000/api/v4/projects/1",
    "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
  },
  "moved_to_id": null,
  "service_desk_reply_to": "service.desk@gitlab.com"
}

GitLab Premium 또는 Ultimate 버전을 사용하는 사용자가 만든 이슈에는 weight 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "weight": null,
   ...
}

GitLab Premium 또는 Ultimate 버전을 사용하는 사용자가 만든 이슈에는 epic 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic": {
   "epic_iid" : 5, //deprecated, use `iid` of the `epic` attribute
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate 사용자는 health_status 속성도 볼 수 있습니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "on_track",
      ...
   }
]
caution
assignee 열은 사용되지 않습니다. 이제 GitLab EE API에 맞게 단일 크기의 배열 assignees로 표시합니다.
caution
epic_iid 속성은 사용되지 않으며 API 버전 5에서 제거 예정입니다. epic 속성의 iid를 사용하십시오.

프로젝트별 단일 이슈

단일 프로젝트 이슈를 가져옵니다.

프로젝트가 비공개이거나 이슈가 기밀인 경우, 권한을 부여하려면 자격 증명을 제공해야 합니다. 이를 수행하는 선호하는 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /projects/:id/issues/:issue_iid

지원되는 속성:

속성 유형 필수여부 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 글로벌 ID 또는 URL 인코딩된 프로젝트 경로입니다.
issue_iid 정수 프로젝트의 이슈의 내부 ID입니다.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/4/issues/41"

예시 응답:

{
   "project_id" : 4,
   "milestone" : {
      "due_date" : null,
      "project_id" : 4,
      "state" : "closed",
      "description" : "Rerum est voluptatem provident consequuntur molestias similique ipsum dolor.",
      "iid" : 3,
      "id" : 11,
      "title" : "v3.0",
      "created_at" : "2016-01-04T15:31:39.788Z",
      "updated_at" : "2016-01-04T15:31:39.788Z",
      "closed_at" : "2016-01-05T15:31:46.176Z"
   },
   "author" : {
      "state" : "active",
      "web_url" : "https://gitlab.example.com/root",
      "avatar_url" : null,
      "username" : "root",
      "id" : 1,
      "name" : "Administrator"
   },
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "state" : "closed",
   "iid" : 1,
   "assignees" : [{
      "avatar_url" : null,
      "web_url" : "https://gitlab.example.com/lennie",
      "state" : "active",
      "username" : "lennie",
      "id" : 9,
      "name" : "Dr. Luella Kovacek"
   }],
   "assignee" : {
      "avatar_url" : null,
      "web_url" : "https://gitlab.example.com/lennie",
      "state" : "active",
      "username" : "lennie",
      "id" : 9,
      "name" : "Dr. Luella Kovacek"
   },
   "type" : "ISSUE",
   "labels" : [],
   "upvotes": 4,
   "downvotes": 0,
   "merge_requests_count": 0,
   "id" : 41,
   "title" : "Ut commodi ullam eos dolores perferendis nihil sunt.",
   "updated_at" : "2016-01-04T15:31:46.176Z",
   "created_at" : "2016-01-04T15:31:46.176Z",
   "closed_at" : null,
   "closed_by" : null,
   "subscribed": false,
   "user_notes_count": 1,
   "due_date": null,
   "imported": false,
   "imported_from": "none",
   "web_url": "http://gitlab.example.com/my-group/my-project/issues/1",
   "references": {
     "short": "#1",
     "relative": "#1",
     "full": "my-group/my-project#1"
   },
   "time_stats": {
      "time_estimate": 0,
      "total_time_spent": 0,
      "human_time_estimate": null,
      "human_total_time_spent": null
   },
   "confidential": false,
   "discussion_locked": false,
   "issue_type": "issue",
   "severity": "UNKNOWN",
   "_links": {
      "self": "http://gitlab.example.com/api/v4/projects/1/issues/2",
      "notes": "http://gitlab.example.com/api/v4/projects/1/issues/2/notes",
      "award_emoji": "http://gitlab.example.com/api/v4/projects/1/issues/2/award_emoji",
      "project": "http://gitlab.example.com/api/v4/projects/1",
      "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
   },
   "task_completion_status":{
      "count":0,
      "completed_count":0
   }
}

GitLab Premium 또는 Ultimate 버전을 사용하는 사용자가 만든 이슈에는 weight 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "weight": null,
   ...
}

GitLab Premium 또는 Ultimate 버전을 사용하는 사용자가 만든 이슈에는 epic 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //deprecated, use `iid` of the `epic` attribute
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate 사용자는 health_status 속성도 볼 수 있습니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "on_track",
      ...
   }
]
caution
assignee 열은 사용되지 않습니다. 이제 GitLab EE API에 맞게 단일 크기의 배열 assignees로 표시합니다.
caution
epic_iid 속성은 사용되지 않으며 API 버전 5에서 제거 예정입니다. epic 속성의 iid를 사용하십시오.

새 이슈

새 프로젝트 이슈를 생성합니다.

POST /projects/:id/issues

지원되는 속성:

속성 유형 필수 여부 설명
id 정수/문자열 Yes 인증된 사용자가 소유한 프로젝트의 글로벌 ID 또는 URL 인코딩된 경로입니다.
assignee_id 정수 No 이 이슈를 할당할 사용자의 ID입니다. GitLab Free에만 나타납니다.
assignee_ids 정수 배열 No 이 이슈를 할당할 사용자들의 ID입니다. Premium 및 Ultimate 전용입니다.
confidential 부울 No 이슈를 비밀로 지정합니다. 기본값은 false입니다.
created_at 문자열 No 이슈가 생성된 날짜 및 시간입니다. ISO 8601 형식의 날짜 및 시간 문자열로, 예를 들어 2016-03-11T03:45:40Z입니다. 관리자 또는 프로젝트/그룹 소유자 권한이 필요합니다.
description 문자열 No 이슈에 대한 설명입니다. 최대 1,048,576자로 제한됩니다.
discussion_to_resolve 문자열 No 해결할 토론의 ID입니다. 이는 기본 설명으로 이슈를 채우고 토론을 해결로 표시합니다. merge_request_to_resolve_discussions_of와 함께 사용합니다.
due_date 문자열 No 마감 날짜입니다. YYYY-MM-DD 형식의 날짜 및 시간 문자열로, 예를 들어 2016-03-11입니다.
epic_id 정수 No 이 이슈를 추가할 에픽의 ID입니다. 유효한 값은 0 이상입니다. Premium 및 Ultimate 전용입니다.
epic_iid 정수 No 이 이슈를 추가할 에픽의 IID입니다. 유효한 값은 0 이상입니다. (폐기 예정, API 버전 5에서 삭제 예정) Premium 및 Ultimate 전용입니다.
iid 정수/문자열 No 프로젝트의 이슈의 내부 ID입니다. (관리자 또는 프로젝트 소유자 권한이 필요함).
issue_type 문자열 No 이슈의 유형입니다. issue, incident, test_case, task 중 하나입니다. 기본값은 issue입니다.
labels 문자열 No 새 이슈에 할당할 쉼표로 구분된 레이블 이름입니다. 레이블이 이미 존재하지 않으면 프로젝트 레이블을 만들고 이를 이슈에 할당합니다.
merge_request_to_resolve_discussions_of 정수 No 모든 이슈를 해결할 머지 요청의 IID입니다. 이는 기본 설명으로 이슈를 채우고 모든 토론을 해결로 표시합니다. 설명 또는 제목을 전달할 경우 이 값들이 기본 값보다 우선합니다.
milestone_id 정수 No 이슈에 할당할 마일스톤의 글로벌 ID입니다. 마일스톤과 관련된 milestone_id를 찾으려면 할당된 마일스톤이 있는 이슈를 보고 API를 사용하여 이슈의 세부 정보를 검색하세요.
title 문자열 Yes 이슈의 제목입니다.
weight 정수 No 이슈의 가중치입니다. 유효한 값은 0 이상입니다. Premium 및 Ultimate 전용입니다.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/4/issues?title=Issues%20with%20auth&labels=bug"

예시 응답:

{
   "project_id" : 4,
   "id" : 84,
   "created_at" : "2016-01-07T12:44:33.959Z",
   "iid" : 14,
   "title" : "Issues with auth",
   "state" : "opened",
   "assignees" : [],
   "assignee" : null,
   "type" : "ISSUE",
   "labels" : [
      "bug"
   ],
   "upvotes": 4,
   "downvotes": 0,
   "merge_requests_count": 0,
   "author" : {
      "name" : "Alexandra Bashirian",
      "avatar_url" : null,
      "state" : "active",
      "web_url" : "https://gitlab.example.com/eileen.lowe",
      "id" : 18,
      "username" : "eileen.lowe"
   },
   "description" : null,
   "updated_at" : "2016-01-07T12:44:33.959Z",
   "closed_at" : null,
   "closed_by" : null,
   "milestone" : null,
   "subscribed" : true,
   "user_notes_count": 0,
   "due_date": null,
   "web_url": "http://gitlab.example.com/my-group/my-project/issues/14",
   "references": {
     "short": "#14",
     "relative": "#14",
     "full": "my-group/my-project#14"
   },
   "time_stats": {
      "time_estimate": 0,
      "total_time_spent": 0,
      "human_time_estimate": null,
      "human_total_time_spent": null
   },
   "confidential": false,
   "discussion_locked": false,
   "issue_type": "issue",
   "severity": "UNKNOWN",
   "_links": {
      "self": "http://gitlab.example.com/api/v4/projects/1/issues/2",
      "notes": "http://gitlab.example.com/api/v4/projects/1/issues/2/notes",
      "award_emoji": "http://gitlab.example.com/api/v4/projects/1/issues/2/award_emoji",
      "project": "http://gitlab.example.com/api/v4/projects/1",
      "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
   },
   "task_completion_status":{
      "count":0,
      "completed_count":0
   }
}

GitLab Premium 또는 Ultimate에서 사용자가 생성한 이슈에는 weight 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : null,
   "weight": null,
   ...
}

GitLab Premium 또는 Ultimate에서 사용자가 생성한 이슈에는 epic 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //폐기 예정, `epic` 속성의 `iid`를 사용하세요
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate에서 사용자가 생성한 이슈에는 health_status 속성이 포함됩니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "on_track",
      ...
   }
]
caution
assignee 열은 폐기 예정입니다. 이제 GitLab EE API와 일치하게 하기 위해 단일 크기의 배열 assignees로 표시합니다.
caution
epic_iid 속성은 폐기 예정이며 API 버전 5에서 삭제 예정입니다. 대신 epic 속성의 iid를 사용하세요.

요율 제한

악용을 방지하기 위해 사용자는 분당 특정 수의 생성(Create) 요청으로 제한될 수 있습니다. 이슈 요율 제한(../administration/settings/rate_limit_on_issues_creation.md)을 참조하세요.

이슈 편집

기존 프로젝트 이슈를 업데이트합니다. 이 요청은 또한 state_event를 사용하여 이슈를 닫거나 다시 엽니다.

요청이 성공하려면 다음 중 하나 이상의 매개변수가 필요합니다:

  • :assignee_id
  • :assignee_ids
  • :confidential
  • :created_at
  • :description
  • :discussion_locked
  • :due_date
  • :issue_type
  • :labels
  • :milestone_id
  • :state_event
  • :title
PUT /projects/:id/issues/:issue_iid

지원되는 속성:

속성 유형 필수 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL-인코딩된 경로
issue_iid 정수 프로젝트 이슈의 내부 ID
add_labels 문자열 아니오 이슈에 추가할 쉼표로 구분된 라벨 이름. 라벨이 이미 존재하지 않는 경우, 새 프로젝트 라벨을 만들고 이를 이슈에 할당합니다.
assignee_ids 정수 배열 아니오 이슈를 지정할 사용자의 ID. 모든 지정 사용자를 지정 해제하려면 0을 설정하거나 비어있는 값을 제공하세요.
confidential 부울 아니오 이슈를 비공개로 설정합니다.
description 문자열 아니오 이슈 설명. 1,048,576자로 제한됩니다.
discussion_locked 부울 아니오 이슈의 토론이 잠겨 있는지 나타내는 플래그입니다. 토론이 잠겨 있으면 프로젝트 멤버만 추가하거나 수정할 수 있습니다.
due_date 문자열 아니오 마감일. 예: YYYY-MM-DD 형식의 날짜-시간 문자열, 예: 2016-03-11
epic_id 정수 아니오 이슈를 추가 할 에픽(ID). 유효한 값은 0 이상입니다. Premium 및 Ultimate 전용입니다.
epic_iid 정수 아니오 이슈를 추가 할 에픽(IID). 유효한 값은 0 이상입니다. (지원 중단됨, 제거 예정 API 버전 5). Premium 및 Ultimate 전용입니다.
issue_type 문자열 아니오 이슈 유형을 업데이트합니다. issue, incident, test_case 또는 task 중 하나입니다.
labels 문자열 아니오 이슈에 대한 쉼표로 구분된 라벨 이름. 모든 라벨을 지정 해제하려면 빈 문자열로 설정하세요. 라벨이 이미 존재하지 않는 경우, 새 프로젝트 라벨을 만들고 이를 이슈에 할당합니다.
milestone_id 정수 아니오 이슈를 할당 할 마일스톤의 전역 ID. 마일스톤을 지정 해제하려면 0을 설정하거나 빈 값을 제공하세요.
remove_labels 문자열 아니오 이슈에서 제거 할 쉼표로 구분된 라벨 이름.
state_event 문자열 아니오 이슈의 상태 이벤트. 이슈를 닫으려면 close를 사용하고, 다시 열려면 reopen을 사용하세요.
title 문자열 아니오 이슈 제목.
updated_at 문자열 아니오 이슈가 업데이트된 시간. 날짜-시간 문자열, ISO 8601 형식. 예: 2016-03-11T03:45:40Z (관리자 또는 프로젝트 소유자 권한이 필요합니다). 빈 문자열 또는 null 값을 허용하지 않습니다.
weight 정수 아니오 이슈의 가중치. 유효한 값은 0 이상입니다. Premium 및 Ultimate 전용입니다.

예시 요청:

curl --request PUT \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/4/issues/85?state_event=close"

예시 응답:

{
   "created_at" : "2016-01-07T12:46:01.410Z",
   "author" : {
      "name" : "Alexandra Bashirian",
      "avatar_url" : null,
      "username" : "eileen.lowe",
      "id" : 18,
      "state" : "active",
      "web_url" : "https://gitlab.example.com/eileen.lowe"
   },
   "state" : "closed",
   "title" : "Issues with auth",
   "project_id" : 4,
   "description" : null,
   "updated_at" : "2016-01-07T12:55:16.213Z",
   "closed_at" : "2016-01-08T12:55:16.213Z",
   "closed_by" : {
      "state" : "active",
      "web_url" : "https://gitlab.example.com/root",
      "avatar_url" : null,
      "username" : "root",
      "id" : 1,
      "name" : "Administrator"
    },
   "iid" : 15,
   "labels" : [
      "bug"
   ],
   "upvotes": 4,
   "downvotes": 0,
   "merge_requests_count": 0,
   "id" : 85,
   "assignees" : [],
   "assignee" : null,
   "milestone" : null,
   "subscribed" : true,
   "user_notes_count": 0,
   "due_date": "2016-07-22",
   "web_url": "http://gitlab.example.com/my-group/my-project/issues/15",
   "references": {
     "short": "#15",
     "relative": "#15",
     "full": "my-group/my-project#15"
   },
   "time_stats": {
      "time_estimate": 0,
      "total_time_spent": 0,
      "human_time_estimate": null,
      "human_total_time_spent": null
   },
   "confidential": false,
   "discussion_locked": false,
   "issue_type": "issue",
   "severity": "UNKNOWN",
   "_links": {
      "self": "http://gitlab.example.com/api/v4/projects/1/issues/2",
      "notes": "http://gitlab.example.com/api/v4/projects/1/issues/2/notes",
      "award_emoji": "http://gitlab.example.com/api/v4/projects/1/issues/2/award_emoji",
      "project": "http://gitlab.example.com/api/v4/projects/1",
      "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
   
   },
   "task_completion_status":{
      "count":0,
      "completed_count":0
   }
}

GitLab Premium 또는 Ultimate에서 사용자가 만든 이슈는 weight 속성을 포함합니다:

{
   "project_id" : 4,
   "description" : null,
   "weight": null,
   ...
}

GitLab Premium 또는 Ultimate에서 사용자가 만든 이슈는 epic 속성을 포함합니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //지원 중단됨, `epic` 속성의 `iid` 사용
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate에서 사용자가 만든 이슈는 health_status 속성을 포함합니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "on_track",
      ...
   }
]
caution
epic_iid 속성은 향후 API 버전 5에서 사용 중단되고 제거 예정입니다. 대신 epic 속성의 iid를 사용하세요.
caution
assignee 열은 사용 중단되었습니다. 이제 GitLab EE API와 일치하도록 단일 크기의 배열 assignees로 표시합니다.

이슈 삭제

관리자 및 프로젝트 소유자 전용입니다.

이슈를 삭제합니다.

DELETE /projects/:id/issues/:issue_iid

지원되는 속성:

속성 유형 필수 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL-encoded path
issue_iid 정수 프로젝트의 이슈의 내부 ID입니다.

예시 요청:

curl --request DELETE \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/4/issues/85"

성공하면 204 No Content를 반환합니다.

이슈 재정렬

이슈를 재정렬합니다. 이슈를 매뉴얼으로 정렬할 때 결과를 확인할 수 있습니다.

PUT /projects/:id/issues/:issue_iid/reorder

지원되는 속성:

속성 유형 필수 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL-encoded path
issue_iid 정수 프로젝트의 이슈의 내부 ID입니다.
move_after_id 정수 아니오 이 이슈 다음에 배치해야 하는 프로젝트의 전역 ID입니다.
move_before_id 정수 아니오 이 이슈 이전에 배치해야 하는 프로젝트의 전역 ID입니다.

예시 요청:

curl --request PUT \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/4/issues/85/reorder?move_after_id=51&move_before_id=92"

이슈 이동

이슈를 다른 프로젝트로 이동합니다. 대상 프로젝트가 소스 프로젝트인 경우 또는 사용자의 권한이 충분하지 않은 경우 400 상태 코드와 함께 오류 메시지가 반환됩니다.

대상 프로젝트에 동일한 이름의 레이블 또는 마일스톤이 있는 경우 해당 레이블 또는 마일스톤이 해당 이슈에 할당됩니다.

POST /projects/:id/issues/:issue_iid/move

지원되는 속성:

속성 유형 필수 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL-encoded path
issue_iid 정수 프로젝트의 이슈의 내부 ID입니다.
to_project_id 정수 새 프로젝트의 ID입니다.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --form to_project_id=5 \
  --url "https://gitlab.example.com/api/v4/projects/4/issues/85/move"

예시 응답:

{
  "id": 92,
  "iid": 11,
  "project_id": 5,
  "title": "Sit voluptas tempora quisquam aut doloribus et.",
  "description": "Repellat voluptas quibusdam voluptatem exercitationem.",
  "state": "opened",
  "created_at": "2016-04-05T21:41:45.652Z",
  "updated_at": "2016-04-07T12:20:17.596Z",
  "closed_at": null,
  "closed_by": null,
  "labels": [],
  "upvotes": 4,
  "downvotes": 0,
  "merge_requests_count": 0,
  "milestone": null,
  "assignees": [{
    "name": "Miss Monserrate Beier",
    "username": "axel.block",
    "id": 12,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/46f6f7dc858ada7be1853f7fb96e81da?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/axel.block"
  }],
  "assignee": {
    "name": "Miss Monserrate Beier",
    "username": "axel.block",
    "id": 12,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/46f6f7dc858ada7be1853f7fb96e81da?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/axel.block"
  },
  "type" : "ISSUE",
  "author": {
    "name": "Kris Steuber",
    "username": "solon.cremin",
    "id": 10,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/7a190fecbaa68212a4b68aeb6e3acd10?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/solon.cremin"
  },
  "due_date": null,
  "imported": false,
  "imported_from": "none",
  "web_url": "http://gitlab.example.com/my-group/my-project/issues/11",
  "references": {
    "short": "#11",
    "relative": "#11",
    "full": "my-group/my-project#11"
  },
  "time_stats": {
    "time_estimate": 0,
    "total_time_spent": 0,
    "human_time_estimate": null,
    "human_total_time_spent": null
  },
  "confidential": false,
  "discussion_locked": false,
  "issue_type": "issue",
  "severity": "UNKNOWN",
  "_links": {
    "self": "http://gitlab.example.com/api/v4/projects/1/issues/2",
    "notes": "http://gitlab.example.com/api/v4/projects/1/issues/2/notes",
    "award_emoji": "http://gitlab.example.com/api/v4/projects/1/issues/2/award_emoji",
    "project": "http://gitlab.example.com/api/v4/projects/1",
    "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
  },
  "task_completion_status":{
     "count":0,
     "completed_count":0
  }
}

GitLab Premium 또는 Ultimate 사용자가 작성한 이슈에는 weight 속성이 포함됩니다:

{
  "project_id": 5,
  "description": "Repellat voluptas quibusdam voluptatem exercitationem.",
  "weight": null,
  ...
}

GitLab Premium 또는 Ultimate 사용자가 작성한 이슈에는 epic 속성이 포함됩니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //deprecated, use `epic` 속성의 `iid`
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate 사용자가 만든 이슈에는 health_status 속성이 포함됩니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "on_track",
      ...
   }
]
caution
assignee 열이 사용되지 않습니다. 이제 GitLab EE API에 따라 단일 크기의 배열 assignees로 표시됩니다.
caution
epic_iid 속성은 API 버전 5에서 제거 예정되었습니다. epic 속성의 iid를 사용하세요.

이슈 복제

주어진 프로젝트로 이슈를 복제합니다. 대상 프로젝트에 레이블 또는 마일스톤과 같이 동등한 기준이 있는 경우, 가능한 한 많은 데이터를 복사합니다.

만약 권한이 부족하면 상태 코드 400과 함께 오류 메시지가 반환됩니다.

POST /projects/:id/issues/:issue_iid/clone

지원되는 속성:

속성 타입 필수 여부 설명
id integer/string 인증된 사용자가 소유한 프로젝트의 ID 또는 URL 인코딩된 경로
issue_iid integer 프로젝트의 이슈의 내부 ID
to_project_id integer 새 프로젝트의 ID
with_notes boolean 아니요 이슈를 노트와 함께 복제합니다. 기본값은 false입니다.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/1/clone?with_notes=true&to_project_id=6"

예시 응답:

{
  "id":290,
  "iid":1,
  "project_id":143,
  "title":"foo",
  "description":"closed",
  "state":"opened",
  "created_at":"2021-09-14T22:24:11.696Z",
  "updated_at":"2021-09-14T22:24:11.696Z",
  "closed_at":null,
  "closed_by":null,
  "labels":[
  
  ],
  "milestone":null,
  "assignees":[
    {
      "id":179,
      "name":"John Doe2",
      "username":"john",
      "state":"active",
      "avatar_url":"https://www.gravatar.com/avatar/10fc7f102be8de7657fb4d80898bbfe3?s=80\u0026d=identicon",
      "web_url":"https://gitlab.example.com/john"
    }
  ],
  "author":{
    "id":179,
    "name":"John Doe2",
    "username":"john",
    "state":"active",
    "avatar_url":"https://www.gravatar.com/avatar/10fc7f102be8de7657fb4d80898bbfe3?s=80\u0026d=identicon",
    "web_url":"https://gitlab.example.com/john"
  },
  "type":"ISSUE",
  "assignee":{
    "id":179,
    "name":"John Doe2",
    "username":"john",
    "state":"active",
    "avatar_url":"https://www.gravatar.com/avatar/10fc7f102be8de7657fb4d80898bbfe3?s=80\u0026d=identicon",
    "web_url":"https://gitlab.example.com/john"
  },
  "user_notes_count":1,
  "merge_requests_count":0,
  "upvotes":0,
  "downvotes":0,
  "due_date":null,
  "imported":false,
  "imported_from": "none",
  "confidential":false,
  "discussion_locked":null,
  "issue_type":"issue",
  "severity": "UNKNOWN",
  "web_url":"https://gitlab.example.com/namespace1/project2/-/issues/1",
  "time_stats":{
    "time_estimate":0,
    "total_time_spent":0,
    "human_time_estimate":null,
    "human_total_time_spent":null
  },
  "task_completion_status":{
    "count":0,
    "completed_count":0
  },
  "blocking_issues_count":0,
  "has_tasks":false,
  "_links":{
    "self":"https://gitlab.example.com/api/v4/projects/143/issues/1",
    "notes":"https://gitlab.example.com/api/v4/projects/143/issues/1/notes",
    "award_emoji":"https://gitlab.example.com/api/v4/projects/143/issues/1/award_emoji",
    "project":"https://gitlab.example.com/api/v4/projects/143",
    "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
  },
  "references":{
    "short":"#1",
    "relative":"#1",
    "full":"namespace1/project2#1"
  },
  "subscribed":true,
  "moved_to_id":null,
  "service_desk_reply_to":null
}

알림

다음 요청은 이슈에 대한 이메일 알림과 관련이 있습니다.

이슈 구독

인증된 사용자를 이슈에 구독하여 알림을 받도록합니다. 사용자가 이미 이슈를 구독했으면 상태 코드 304가 반환됩니다.

POST /projects/:id/issues/:issue_iid/subscribe

지원되는 속성:

속성 타입 필수 여부 설명
id integer/string 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로
issue_iid integer 프로젝트의 이슈의 내부 ID

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/subscribe"

예시 응답:

{
  "id": 92,
  "iid": 11,
  "project_id": 5,
  "title": "Sit voluptas tempora quisquam aut doloribus et.",
  "description": "Repellat voluptas quibusdam voluptatem exercitationem.",
  "state": "opened",
  "created_at": "2016-04-05T21:41:45.652Z",
  "updated_at": "2016-04-07T12:20:17.596Z",
  "closed_at": null,
  "closed_by": null,
  "labels": [],
  "upvotes": 4,
  "downvotes": 0,
  "merge_requests_count": 0,
  "milestone": null,
  "assignees": [{
    "name": "Miss Monserrate Beier",
    "username": "axel.block",
    "id": 12,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/46f6f7dc858ada7be1853f7fb96e81da?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/axel.block"
  }],
  "assignee": {
    "name": "Miss Monserrate Beier",
    "username": "axel.block",
    "id": 12,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/46f6f7dc858ada7be1853f7fb96e81da?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/axel.block"
  },
  "type" : "ISSUE",
  "author": {
    "name": "Kris Steuber",
    "username": "solon.cremin",
    "id": 10,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/7a190fecbaa68212a4b68aeb6e3acd10?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/solon.cremin"
  },
  "due_date": null,
  "web_url": "http://gitlab.example.com/my-group/my-project/issues/11",
  "references": {
    "short": "#11",
    "relative": "#11",
    "full": "my-group/my-project#11"
  },
  "time_stats": {
    "time_estimate": 0,
    "total_time_spent": 0,
    "human_time_estimate": null,
    "human_total_time_spent": null
  },
  "confidential": false,
  "discussion_locked": false,
  "issue_type": "issue",
  "severity": "UNKNOWN",
  "_links": {
    "self": "http://gitlab.example.com/api/v4/projects/1/issues/2",
    "notes": "http://gitlab.example.com/api/v4/projects/1/issues/2/notes",
    "award_emoji": "http://gitlab.example.com/api/v4/projects/1/issues/2/award_emoji",
    "project": "http://gitlab.example.com/api/v4/projects/1",
    "closed_as_duplicate_of": "http://gitlab.example.com/api/v4/projects/1/issues/75"
  },
  "task_completion_status":{
     "count":0,
     "completed_count":0
  }
}

GitLab Premium 또는 Ultimate 사용자가 생성한 이슈는 weight 속성을 포함합니다:

{
  "project_id": 5,
  "description": "Repellat voluptas quibusdam voluptatem exercitationem.",
  "weight": null,
  ...
}

GitLab Premium 또는 Ultimate 사용자가 생성한 이슈는 epic 속성을 포함합니다:

{
   "project_id" : 4,
   "description" : "Omnis vero earum sunt corporis dolor et placeat.",
   "epic_iid" : 5, //deprecated, use `epic` 속성의 `iid`
   "epic": {
     "id" : 42,
     "iid" : 5,
     "title": "My epic epic",
     "url" : "/groups/h5bp/-/epics/5",
     "group_id": 8
   },
   ...
}

GitLab Ultimate 사용자가 생성한 이슈는 health_status 속성을 포함합니다:

[
   {
      "project_id" : 4,
      "description" : "Omnis vero earum sunt corporis dolor et placeat.",
      "health_status": "on_track",
      ...
   }
]
caution
assignee 열이 사용이 중단되었습니다. 현재 GitLab EE API에 준수하기 위해 단일 크기의 배열 assignees로 표시합니다.
caution
epic_iid 속성은 API 버전 5에서 제거 예정되었습니다. 대신 epic 속성의 iid를 사용하십시오.

이슈 구독 취소

인증된 사용자를 이슈에서 구독 해제하여 해당 이슈로부터 알림을받지 않습니다. 사용자가 이 문제에 가입하지 않은 경우 상태 코드 304가 반환됩니다.

POST /projects/:id/issues/:issue_iid/unsubscribe

지원되는 속성:

속성 유형 필수 여부 설명
id integer/string Yes 인증 된 사용자의 보유 프로젝트의 글로벌 ID 또는 URL-인코딩 된 경로
issue_iid integer Yes 프로젝트 이슈의 내부 ID

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/unsubscribe"

예시 응답:

{
  "id": 93,
  "iid": 12,
  "project_id": 5,
  "title": "Incidunt et rerum ea expedita iure quibusdam.",
  "description": "Et cumque architecto sed aut ipsam.",
  "state": "opened",
  "created_at": "2016-04-05T21:41:45.217Z",
  "updated_at": "2016-04-07T13:02:37.905Z",
  "labels": [],
  "upvotes": 4,
  "downvotes": 0,
  "merge_requests_count": 0,
  "milestone": null,
  "assignee": {
    "name": "Edwardo Grady",
    "username": "keyon",
    "id": 21,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/3e6f06a86cf27fa8b56f3f74f7615987?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/keyon"
  },
  "type" : "ISSUE",
  "closed_at": null,
  "closed_by": null,
  "author": {
    "name": "Vivian Hermann",
    "username": "orville",
    "id": 11,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/5224fd70153710e92fb8bcf79ac29d67?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/orville"
  },
  "subscribed": false,
  "due_date": null,
  "web_url": "http://gitlab.example.com/my-group/my-project/issues/12",
  "references": {
    "short": "#12",
    "relative": "#12",
    "full": "my-group/my-project#12"
  },
  "confidential": false,
  "discussion_locked": false,
  "issue_type": "issue",
  "severity": "UNKNOWN",
  "task_completion_status":{
     "count":0,
     "completed_count":0
  }
}

할 일 항목 만들기

현재 사용자에 대한 이슈에 대한 할 일 항목을 매뉴얼으로 만듭니다. 사용자가 해당 이슈에 대해 이미 할 일 항목이있는 경우 상태 코드 304가 반환됩니다.

POST /projects/:id/issues/:issue_iid/todo

지원되는 속성:

속성 유형 필수 여부 설명
id integer/string Yes 인증 된 사용자의 보유 프로젝트의 글로벌 ID 또는 URL-인코딩 된 경로
issue_iid integer Yes 프로젝트 이슈의 내부 ID

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/todo"

예시 응답:

{
  "id": 112,
  "project": {
    "id": 5,
    "name": "GitLab CI/CD",
    "name_with_namespace": "GitLab Org / GitLab CI/CD",
    "path": "gitlab-ci",
    "path_with_namespace": "gitlab-org/gitlab-ci"
  },
  "author": {
    "name": "Administrator",
    "username": "root",
    "id": 1,
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
    "web_url": "https://gitlab.example.com/root"
  },
  "action_name": "marked",
  "target_type": "Issue",
  "target": {
    "id": 93,
    "iid": 10,
    "project_id": 5,
    "title": "Vel voluptas atque dicta mollitia adipisci qui at.",
    "description": "Tempora laboriosam sint magni sed voluptas similique.",
    "state": "closed",
    "created_at": "2016-06-17T07:47:39.486Z",
    "updated_at": "2016-07-01T11:09:13.998Z",
    "labels": [],
    "milestone": {
      "id": 26,
      "iid": 1,
      "project_id": 5,
      "title": "v0.0",
      "description": "Accusantium nostrum rerum quae quia quis nesciunt suscipit id.",
      "state": "closed",
      "created_at": "2016-06-17T07:47:33.832Z",
      "updated_at": "2016-06-17T07:47:33.832Z",
      "due_date": null
    },
    "assignees": [{
      "name": "Jarret O'Keefe",
      "username": "francisca",
      "id": 14,
      "state": "active",
      "avatar_url": "http://www.gravatar.com/avatar/a7fa515d53450023c83d62986d0658a8?s=80&d=identicon",
      "web_url": "https://gitlab.example.com/francisca"
    }],
    "assignee": {
      "name": "Jarret O'Keefe",
      "username": "francisca",
      "id": 14,
      "state": "active",
      "avatar_url": "http://www.gravatar.com/avatar/a7fa515d53450023c83d62986d0658a8?s=80&d=identicon",
      "web_url": "https://gitlab.example.com/francisca"
    },
    "type" : "ISSUE",
    "author": {
      "name": "Maxie Medhurst",
      "username": "craig_rutherford",
      "id": 12,
      "state": "active",
      "avatar_url": "http://www.gravatar.com/avatar/a0d477b3ea21970ce6ffcbb817b0b435?s=80&d=identicon",
      "web_url": "https://gitlab.example.com/craig_rutherford"
    },
    "subscribed": true,
    "user_notes_count": 7,
    "upvotes": 0,
    "downvotes": 0,
    "merge_requests_count": 0,
    "due_date": null,
    "web_url": "http://gitlab.example.com/my-group/my-project/issues/10",
    "references": {
      "short": "#10",
      "relative": "#10",
      "full": "my-group/my-project#10"
    },
    "confidential": false,
    "discussion_locked": false,
    "issue_type": "issue",
    "severity": "UNKNOWN",
    "task_completion_status":{
       "count":0,
       "completed_count":0
    }
  },
  "target_url": "https://gitlab.example.com/gitlab-org/gitlab-ci/issues/10",
  "body": "Vel voluptas atque dicta mollitia adipisci qui at.",
  "state": "pending",
  "created_at": "2016-07-01T11:09:13.992Z"
}
caution
assignee 열은 사용되지 않습니다. 이제 GitLab EE API에 맞추기 위해 단일 크기의 배열 assignees로 표시됩니다.

이슈를 에픽으로 승격하기

Tier: Premium, Ultimate Offering: GitLab.com, Self-Managed, GitLab Dedicated

/promote 빠른 조치를 사용하여 이슈를 에픽으로 승격합니다.

이슈를 에픽으로 승격하려면 /promote가 새 줄에서 시작되는 댓글을 추가합니다. 이때 댓글 내용에 /promote가 포함되어야 합니다. /promote만 포함된 경우에는 이슈를 승격하지만 댓글을 추가하지는 않습니다. 그 외의 경우에는 다른 줄이 댓글을 형성합니다.

에픽으로 이슈를 승격하는 방법에 대한 자세한 내용은 이슈를 에픽으로 승격하기를 참조하십시오.

POST /projects/:id/issues/:issue_iid/notes

지원되는 속성:

속성 유형 필수 설명
id integer/string Yes 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩 경로.
issue_iid integer Yes 프로젝트 이슈의 내부 ID.
body String Yes 노트의 내용. 새 줄에서 /promote를 포함해야 합니다. 노트에 /promote만 포함된 경우 이슈는 승격되지만 댓글은 추가되지 않습니다. 그 외의 경우, 다른 줄은 댓글을 형성합니다.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/11/notes?body=Lets%20promote%20this%20to%20an%20epic%0A%0A%2Fpromote"

예시 응답:

{
   "id":699,
   "type":null,
   "body":"Lets promote this to an epic",
   "attachment":null,
   "author": {
      "id":1,
      "name":"Alexandra Bashirian",
      "username":"eileen.lowe",
      "state":"active",
      "avatar_url":"https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
      "web_url":"https://gitlab.example.com/eileen.lowe"
   },
   "created_at":"2020-12-03T12:27:17.844Z",
   "updated_at":"2020-12-03T12:27:17.844Z",
   "system":false,
   "noteable_id":461,
   "noteable_type":"Issue",
   "resolvable":false,
   "confidential":false,
   "noteable_iid":33,
   "commands_changes": {
      "promote_to_epic":true
   }
}

시간 추적

다음 요청은 이슈에 대한 시간 추적과 관련이 있습니다.

이슈에 대한 시간 예상 설정

이 이슈의 예상 작업 시간을 설정합니다.

POST /projects/:id/issues/:issue_iid/time_estimate

지원되는 속성:

속성 유형 필수 설명
duration string Yes 사람이 읽을 수 있는 형식의 기간. 예: 3h30m.
id integer/string Yes 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩 경로.
issue_iid integer Yes 프로젝트 이슈의 내부 ID.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/time_estimate?duration=3h30m"

예시 응답:

{
  "human_time_estimate": "3h 30m",
  "human_total_time_spent": null,
  "time_estimate": 12600,
  "total_time_spent": 0
}

이슈에 대한 시간 예상 재설정

이 이슈에 대한 예상 시간을 0초로 재설정합니다.

POST /projects/:id/issues/:issue_iid/reset_time_estimate

지원되는 속성:

속성 유형 필수 설명
id integer/string Yes 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩 경로.
issue_iid integer Yes 프로젝트 이슈의 내부 ID.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/reset_time_estimate"

예시 응답:

{
  "human_time_estimate": null,
  "human_total_time_spent": null,
  "time_estimate": 0,
  "total_time_spent": 0
}

이슈에 대한 소요 시간 추가

이 이슈에 대해 소요 시간을 추가합니다.

POST /projects/:id/issues/:issue_iid/add_spent_time

지원되는 속성:

속성 유형 필수 설명
duration string Yes 사람이 읽을 수 있는 형식의 기간. 예: 3h30m
id integer/string Yes 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩 경로.
issue_iid integer Yes 프로젝트 이슈의 내부 ID.
summary string No 시간을 어떻게 사용했는지에 대한 요약.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/add_spent_time?duration=1h"

예시 응답:

{
  "human_time_estimate": null,
  "human_total_time_spent": "1h",
  "time_estimate": 0,
  "total_time_spent": 3600
}

이슈에 대한 소요 시간 재설정

이 이슈의 전체 소요 시간을 0초로 재설정합니다.

POST /projects/:id/issues/:issue_iid/reset_spent_time

지원되는 속성:

속성 유형 필수 설명
id integer/string Yes 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩 경로
issue_iid integer Yes 프로젝트 이슈의 내부 ID.

예시 요청:

curl --request POST \
  --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/reset_spent_time"

예시 응답:

{
  "human_time_estimate": null,
  "human_total_time_spent": null,
  "time_estimate": 0,
  "total_time_spent": 0
}

시간 추적 통계 가져오기

인간이 읽을 수 있는 형식(예: 1h30m)과 초 단위로 된 이슈의 시간 추적 통계를 가져옵니다.

프로젝트가 비공개이거나 이슈가 비밀일 경우, 인증을 위해 자격 증명을 제공해야 합니다. 이를 위한 권장 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /projects/:id/issues/:issue_iid/time_stats

지원되는 속성:

속성 유형 필수 설명
id integer/string Yes 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로.
issue_iid integer Yes 프로젝트 이슈의 내부 ID.

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/time_stats"

예시 응답:

{
  "human_time_estimate": "2h",
  "human_total_time_spent": "1h",
  "time_estimate": 7200,
  "total_time_spent": 3600
}

Merge Request

다음 요청은 이슈와 Merge Request 간의 관계와 관련이 있습니다.

이슈에 관련된 Merge Request 디렉터리

해당 이슈와 관련된 모든 Merge Request을 가져옵니다.

프로젝트가 비공개이거나 이슈가 기밀일 경우, 권한 부여를 위해 자격 증명을 제공해야 합니다. 이를 위한 선호하는 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /projects/:id/issues/:issue_iid/related_merge_requests

지원되는 속성:

속성 유형 필요 여부 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL-encoded path
issue_iid 정수 프로젝트의 이슈의 내부 ID

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/1/issues/11/related_merge_requests"

예시 응답:

[
  {
    "id": 29,
    "iid": 11,
    "project_id": 1,
    "title": "Provident eius eos blanditiis consequatur neque odit.",
    "description": "Ut consequatur ipsa aspernatur quisquam voluptatum fugit. Qui harum corporis quo fuga ut incidunt veritatis. Autem necessitatibus et harum occaecati nihil ea.\r\n\r\ntwitter/flight#8",
    "state": "opened",
    "created_at": "2018-09-18T14:36:15.510Z",
    "updated_at": "2018-09-19T07:45:13.089Z",
    "closed_by": null,
    "closed_at": null,
    "target_branch": "v2.x",
    "source_branch": "so_long_jquery",
    "user_notes_count": 9,
    "upvotes": 0,
    "downvotes": 0,
    "author": {
      "id": 14,
      "name": "Verna Hills",
      "username": "lawanda_reinger",
      "state": "active",
      "avatar_url": "https://www.gravatar.com/avatar/de68a91aeab1cff563795fb98a0c2cc0?s=80&d=identicon",
      "web_url": "https://gitlab.example.com/lawanda_reinger"
    },
    "assignee": {
      "id": 19,
      "name": "Jody Baumbach",
      "username": "felipa.kuvalis",
      "state": "active",
      "avatar_url": "https://www.gravatar.com/avatar/6541fc75fc4e87e203529bd275fafd07?s=80&d=identicon",
      "web_url": "https://gitlab.example.com/felipa.kuvalis"
    },
    "source_project_id": 1,
    "target_project_id": 1,
    "labels": [],
    "draft": false,
    "work_in_progress": false,
    "milestone": {
      "id": 27,
      "iid": 2,
      "project_id": 1,
      "title": "v1.0",
      "description": "Et tenetur voluptatem minima doloribus vero dignissimos vitae.",
      "state": "active",
      "created_at": "2018-09-18T14:35:44.353Z",
      "updated_at": "2018-09-18T14:35:44.353Z",
      "due_date": null,
      "start_date": null,
      "web_url": "https://gitlab.example.com/twitter/flight/milestones/2"
    },
    "merge_when_pipeline_succeeds": false,
    "merge_status": "cannot_be_merged",
    "sha": "3b7b528e9353295c1c125dad281ac5b5deae5f12",
    "merge_commit_sha": null,
    "squash_commit_sha": null,
    "discussion_locked": null,
    "should_remove_source_branch": null,
    "force_remove_source_branch": false,
    "reference": "!11",
    "web_url": "https://gitlab.example.com/twitter/flight/merge_requests/4",
    "references": {
      "short": "!4",
      "relative": "!4",
      "full": "twitter/flight!4"
    },
    "time_stats": {
      "time_estimate": 0,
      "total_time_spent": 0,
      "human_time_estimate": null,
      "human_total_time_spent": null
    },
    "squash": false,
    "task_completion_status": {
      "count": 0,
      "completed_count": 0
    },
    "changes_count": "10",
    "latest_build_started_at": "2018-12-05T01:16:41.723Z",
    "latest_build_finished_at": "2018-12-05T02:35:54.046Z",
    "first_deployed_to_production_at": null,
    "pipeline": {
      "id": 38980952,
      "sha": "81c6a84c7aebd45a1ac2c654aa87f11e32338e0a",
      "ref": "test-branch",
      "status": "success",
      "web_url": "https://gitlab.com/gitlab-org/gitlab/pipelines/38980952"
    },
    "head_pipeline": {
      "id": 38980952,
      "sha": "81c6a84c7aebd45a1ac2c654aa87f11e32338e0a",
      "ref": "test-branch",
      "status": "success",
      "web_url": "https://gitlab.example.com/twitter/flight/pipelines/38980952",
      "before_sha": "3c738a37eb23cf4c0ed0d45d6ddde8aad4a8da51",
      "tag": false,
      "yaml_errors": null,
      "user": {
        "id": 19,
        "name": "Jody Baumbach",
        "username": "felipa.kuvalis",
        "state": "active",
        "avatar_url": "https://www.gravatar.com/avatar/6541fc75fc4e87e203529bd275fafd07?s=80&d=identicon",
        "web_url": "https://gitlab.example.com/felipa.kuvalis"
      },
      "created_at": "2018-12-05T01:16:13.342Z",
      "updated_at": "2018-12-05T02:35:54.086Z",
      "started_at": "2018-12-05T01:16:41.723Z",
      "finished_at": "2018-12-05T02:35:54.046Z",
      "committed_at": null,
      "duration": 4436,
      "coverage": "46.68",
      "detailed_status": {
        "icon": "status_warning",
        "text": "passed",
        "label": "passed with warnings",
        "group": "success-with-warnings",
        "tooltip": "passed",
        "has_details": true,
        "details_path": "/twitter/flight/pipelines/38",
        "illustration": null,
        "favicon": "https://gitlab.example.com/assets/ci_favicons/favicon_status_success-8451333011eee8ce9f2ab25dc487fe24a8758c694827a582f17f42b0a90446a2.png"
      }
    },
    "diff_refs": {
      "base_sha": "d052d768f0126e8cddf80afd8b1eb07f406a3fcb",
      "head_sha": "81c6a84c7aebd45a1ac2c654aa87f11e32338e0a",
      "start_sha": "d052d768f0126e8cddf80afd8b1eb07f406a3fcb"
    },
    "merge_error": null,
    "user": {
      "can_merge": true
    }
  }
]

특정 이슈를 Merge하여 종료하는 Merge Request 디렉터리

Merge되었을 때 특정 이슈를 종료하는 모든 Merge Request을 가져옵니다.

프로젝트가 비공개이거나 이슈가 비밀스럽다면 권한 부여를 위해 자격 증명을 제공해야 합니다. 이를 위한 우선적인 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /projects/:id/issues/:issue_iid/closed_by

지원되는 속성:

속성 유형 필수 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로
issue_iid 정수 프로젝트 이슈의 내부 ID

예제 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --url "https://gitlab.example.com/api/v4/projects/1/issues/11/closed_by"

예제 응답:

[
  {
    "id": 6471,
    "iid": 6432,
    "project_id": 1,
    "title": "add a test for cgi lexer options",
    "description": "closes #11",
    "state": "opened",
    "created_at": "2017-04-06T18:33:34.168Z",
    "updated_at": "2017-04-09T20:10:24.983Z",
    "target_branch": "main",
    "source_branch": "feature.custom-highlighting",
    "upvotes": 0,
    "downvotes": 0,
    "author": {
      "name": "Administrator",
      "username": "root",
      "id": 1,
      "state": "active",
      "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
      "web_url": "https://gitlab.example.com/root"
    },
    "assignee": null,
    "source_project_id": 1,
    "target_project_id": 1,
    "closed_at": null,
    "closed_by": null,
    "labels": [],
    "draft": false,
    "work_in_progress": false,
    "milestone": null,
    "merge_when_pipeline_succeeds": false,
    "merge_status": "unchecked",
    "sha": "5a62481d563af92b8e32d735f2fa63b94e806835",
    "merge_commit_sha": null,
    "squash_commit_sha": null,
    "user_notes_count": 1,
    "should_remove_source_branch": null,
    "force_remove_source_branch": false,
    "web_url": "https://gitlab.example.com/gitlab-org/gitlab-test/merge_requests/6432",
    "reference": "!6432",
    "references": {
      "short": "!6432",
      "relative": "!6432",
      "full": "gitlab-org/gitlab-test!6432"
    },
    "time_stats": {
      "time_estimate": 0,
      "total_time_spent": 0,
      "human_time_estimate": null,
      "human_total_time_spent": null
    }
  }
]

이슈에 참여하는 참가자 디렉터리

이 문제에 참가한 사용자 디렉터리을 표시합니다.

프로젝트가 비공개이거나 이슈가 비밀스럽다면 권한 부여를 위해 자격 증명을 제공해야 합니다. 이를 위한 우선적인 방법은 개인 액세스 토큰을 사용하는 것입니다.

GET /projects/:id/issues/:issue_iid/participants

지원되는 속성:

속성 유형 필수 설명
id integer/string 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로
issue_iid integer 프로젝트의 이슈의 내부 ID

예제 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  -url "https://gitlab.example.com/api/v4/projects/5/issues/93/participants"

예제 응답:

[
  {
    "id": 1,
    "name": "John Doe1",
    "username": "user1",
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=80&d=identicon",
    "web_url": "http://gitlab.example.com/user1"
  },
  {
    "id": 5,
    "name": "John Doe5",
    "username": "user5",
    "state": "active",
    "avatar_url": "http://www.gravatar.com/avatar/4aea8cf834ed91844a2da4ff7ae6b491?s=80&d=identicon",
    "web_url": "http://gitlab.example.com/user5"
  }
]

메트릭 이미지 디렉터리

인시던트에서만 사용할 수 있습니다.

인시던트의 메트릭 탭에 표시된 메트릭 차트의 스크린샷을 나열합니다.

GET /projects/:id/issues/:issue_iid/metric_images

지원되는 속성:

속성 유형 필수 여부 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로
issue_iid 정수 프로젝트의 이슈의 내부 ID

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  -url "https://gitlab.example.com/api/v4/projects/5/issues/93/metric_images"

예시 응답:

[
    {
        "id": 17,
        "created_at": "2020-11-12T20:07:58.156Z",
        "filename": "sample_2054",
        "file_path": "/uploads/-/system/issuable_metric_image/file/17/sample_2054.png",
        "url": "example.com/metric"
    },
    {
        "id": 18,
        "created_at": "2020-11-12T20:14:26.441Z",
        "filename": "sample_2054",
        "file_path": "/uploads/-/system/issuable_metric_image/file/18/sample_2054.png",
        "url": "example.com/metric"
    }
]

메트릭 이미지 업데이트

인시던트에서만 사용할 수 있습니다.

인시던트의 메트릭 탭에 표시된 메트릭 차트의 스크린샷의 속성을 편집합니다.

PUT /projects/:id/issues/:issue_iid/metric_images/:image_id

지원되는 속성:

속성 유형 필수 여부 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로
issue_iid 정수 프로젝트의 이슈의 내부 ID
image_id 정수 이미지의 ID
url 문자열 아니요 더 많은 메트릭 정보를 볼 수 있는 URL
url_text 문자열 아니요 이미지 또는 URL에 대한 설명

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --request PUT \
  --form 'url=http://example.com' \
  --form 'url_text=Example website' \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/metric_images/1"

예시 응답:

{
    "id": 23,
    "created_at": "2020-11-13T00:06:18.084Z",
    "filename": "file.png",
    "file_path": "/uploads/-/system/issuable_metric_image/file/23/file.png",
    "url": "http://example.com",
    "url_text": "Example website"
}

메트릭 이미지 삭제

인시던트에서만 사용할 수 있습니다.

인시던트의 메트릭 탭에 표시된 메트릭 차트의 스크린샷을 삭제합니다.

DELETE /projects/:id/issues/:issue_iid/metric_images/:image_id

지원되는 속성:

속성 유형 필수 여부 설명
id 정수/문자열 인증된 사용자가 소유한 프로젝트의 전역 ID 또는 URL 인코딩된 경로
issue_iid 정수 프로젝트의 이슈의 내부 ID
image_id 정수 이미지의 ID

예시 요청:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
  --request DELETE \
  --url "https://gitlab.example.com/api/v4/projects/5/issues/93/metric_images/1"

다음 상태 코드를 반환할 수 있습니다:

  • 204 No Content: 이미지가 성공적으로 삭제된 경우
  • 400 Bad Request: 이미지를 삭제할 수 없는 경우