Get All Repository Issues
GET/api/v5/repos/:owner/:repo/issues
Request
Path Parameters
Repository space address (organization or individual's address path)
Repository path (path)
Query Parameters
User authorization code
Issue state: open, closed, or all. Default is all.
A comma-separated list of labels. Such as: bug, performance
Sorting criterion: creation time (created), update time (updated). Default: created
Sort order: asc for ascending, desc for descending. Default: desc
The start update time, with the time format required as 2024-11-10T08:10:30.000%2B08:00 (Note that the + sign needs to be URL encoded as %2B)
The current page number
The number of items per page, with a maximum of 100. The default is 20.
Task creation time, for example: 2024-11-20T13:00:21+08:00
According to the milestone title. none for no milestones
Issue Assignee ID
The username of the user who creates the Issues
Returns issues created after the specified time, for example: 2024-11-20T13:00:21+08:00
Returns questions created before the specified time, for example: 2024-11-20T13:00:21+08:00
Returns issues updated after the specified time, for example: 2024-11-20T13:00:21+08:00
Returns issues updated before the specified time, for example: 2024-11-20T13:00:21+08:00
Search for issue by keyword in title or content
Responses
- 200
Successful Response
Response Headers
- application/json
- Schema
- Example (auto)
- 1
- 2
Schema
- Array [
- Array [
- ]
- ]
user objectrequired
repository objectrequired
assigner objectrequired
labels object[]required
label added time
issue_state_detail objectrequired
issue_type_detail objectrequired
issue_priority_detail object
Issue Priority
milestone objectrequired
assignee objectrequired
Visibility, public: publicly visible, confidential: confidential, visible to project members, other: visible to project members due to other reasons
[
{
"id": 0,
"html_url": "string",
"number": "string",
"state": "string",
"title": "string",
"body": "string",
"user": {
"avatar_url": "string",
"html_url": "string",
"id": "string",
"login": "string",
"name": "string"
},
"repository": {
"id": 0,
"full_name": "string",
"path": "string",
"name": "string",
"description": "string",
"created_at": "string",
"updated_at": "string",
"assigner": {},
"paas": "string"
},
"created_at": "string",
"updated_at": "string",
"finished_at": "string",
"labels": [
{
"id": 0,
"name": "string",
"color": "string",
"created_at": "string",
"updated_at": "string"
}
],
"issue_state": "string",
"comments": 0,
"priority": 0,
"issue_type": "string",
"issue_state_detail": {
"title": "string",
"serial": 0,
"id": 0
},
"issue_type_detail": {
"title": "string",
"id": 0,
"is_system": true
},
"issue_priority_detail": {
"id": "string",
"title": "string"
},
"milestone": {
"created_at": "string",
"description": "string",
"due_on": "string",
"number": 0,
"repository_id": 0,
"state": "string",
"title": "string",
"updated_at": "string",
"url": "string"
},
"assignee": {
"avatar_url": "string",
"html_url": "string",
"id": "string",
"login": "string",
"name": "string"
},
"visibility_reason": "string"
}
]
Successful Example
{
"id": 152642,
"html_url": "https://test.gitcode.net/dengmengmian/test01/issues/15",
"number": "15",
"state": "opened",
"title": "half month data",
"body": "abcabcabc",
"user": {
"avatar_url": "https://gitcode-img.obs.cn-south-1.myhuaweicloud.com:443/fa/fe/f32a9fecc53e890afbd48fd098b0f6c5f20f062581400c76c85e5baab3f0d5b2.png",
"events_url": null,
"followers_url": null,
"following_url": null,
"gists_url": null,
"html_url": "https://test.gitcode.net/dengmengmian",
"id": "661ce4eab470b1430d456154",
"login": "dengmengmian",
"member_role": null,
"name": "MaFan_",
"organizations_url": null,
"received_events_url": null,
"remark": null,
"repos_url": null,
"starred_url": null,
"subscriptions_url": null,
"type": null,
"url": null
},
"assignee": {
"avatar_url": "https://gitcode-img.obs.cn-south-1.myhuaweicloud.com:443/fa/fe/f32a9fecc53e890afbd48fd098b0f6c5f20f062581400c76c85e5baab3f0d5b2.png",
"events_url": null,
"followers_url": null,
"following_url": null,
"gists_url": null,
"html_url": "https://test.gitcode.net/dengmengmian",
"id": "661ce4eab470b1430d456154",
"login": "dengmengmian",
"member_role": null,
"name": "MaFan_",
"organizations_url": null,
"received_events_url": null,
"remark": null,
"repos_url": null,
"starred_url": null,
"subscriptions_url": null,
"type": null,
"url": null
},
"repository": {
"id": 280713,
"full_name": "dengmengmian / test01",
"path": "test01",
"name": "test01",
"description": "",
"created_at": "2024-04-15T16:27:45.090+08:00",
"updated_at": "2024-04-15T16:27:45.090+08:00",
"assigner": null,
"pushed_at": null,
"paas": null,
"assignees_number": null,
"testers_number": null,
"assignee": null,
"testers": null
},
"created_at": "2024-04-18T14:35:15.479+08:00",
"updated_at": "2024-04-20T15:20:30.111+08:00",
"finished_at": null,
"labels": [
{
"id": 382379,
"name": "enim",
"color": "#428BCA"
},
{
"id": 382378,
"name": "proident",
"color": "#428BCA"
},
{
"id": 382377,
"name": "qui",
"color": "#428BCA"
}
],
"priority": null,
"issue_type": null,
"issue_state": "opened",
"issue_state_detail": null
}
Successful Example
{
"id": 152467,
"html_url": "https://test.gitcode.net/dengmengmian/test01/issues/14",
"number": "14",
"state": "closed",
"title": "abcabcabc",
"body": "abcabcabc",
"user": {
"avatar_url": "https://gitcode-img.obs.cn-south-1.myhuaweicloud.com:443/fa/fe/f32a9fecc53e890afbd48fd098b0f6c5f20f062581400c76c85e5baab3f0d5b2.png",
"events_url": null,
"followers_url": null,
"following_url": null,
"gists_url": null,
"html_url": "https://test.gitcode.net/dengmengmian",
"id": "661ce4eab470b1430d456154",
"login": "dengmengmian",
"member_role": null,
"name": "MaFan_",
"organizations_url": null,
"received_events_url": null,
"remark": null,
"repos_url": null,
"starred_url": null,
"subscriptions_url": null,
"type": null,
"url": null
},
"assignee": {
"avatar_url": "https://gitcode-img.obs.cn-south-1.myhuaweicloud.com:443/fa/fe/f32a9fecc53e890afbd48fd098b0f6c5f20f062581400c76c85e5baab3f0d5b2.png",
"events_url": null,
"followers_url": null,
"following_url": null,
"gists_url": null,
"html_url": "https://test.gitcode.net/dengmengmian",
"id": "661ce4eab470b1430d456154",
"login": "dengmengmian",
"member_role": null,
"name": "MaFan_",
"organizations_url": null,
"received_events_url": null,
"remark": null,
"repos_url": null,
"starred_url": null,
"subscriptions_url": null,
"type": null,
"url": null
},
"repository": {
"id": 280713,
"full_name": "dengmengmian / test01",
"path": "test01",
"name": "test01",
"description": "",
"created_at": "2024-04-15T16:27:45.090+08:00",
"updated_at": "2024-04-15T16:27:45.090+08:00",
"assigner": null,
"pushed_at": null,
"paas": null,
"assignees_number": null,
"testers_number": null,
"assignee": null,
"testers": null
},
"created_at": "2024-04-16T14:38:43.464+08:00",
"updated_at": "2024-04-18T18:27:21.955+08:00",
"finished_at": "2024-04-16T14:49:45.166+08:00",
"labels": [
{
"id": 382389,
"name": "ad",
"color": "#428BCA"
},
{
"id": 382388,
"name": "id",
"color": "#428BCA"
}
],
"priority": null,
"issue_type": null,
"issue_state": "closed",
"issue_state_detail": null
}