资源迭代事件 API
- Tier: 专业版, 旗舰版
- Offering: JihuLab.com, 私有化部署
资源迭代事件跟踪极狐GitLab 议题 的变化。使用它们来跟踪哪个迭代被设置,谁设置的,以及发生的时间。
议题
列出项目议题迭代事件
获取单个议题的所有迭代事件列表。
plaintextGET /projects/:id/issues/:issue_iid/resource_iteration_events
| 属性 | 类型 | 必需 | 描述 |
|---|---|---|---|
| id | 整数/字符串 | 是 | 项目的 ID 或 URL 编码路径 |
| issue_iid | 整数 | 是 | 议题的 IID |
示例请求:
shellcurl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/resource_iteration_events"
示例响应:
json1[ 2 { 3 "id": 142, 4 "user": { 5 "id": 1, 6 "name": "管理员", 7 "username": "root", 8 "state": "active", 9 "avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", 10 "web_url": "http://gitlab.example.com/root" 11 }, 12 "created_at": "2018-08-20T13:38:20.077Z", 13 "resource_type": "Issue", 14 "resource_id": 253, 15 "iteration": { 16 "id": 50, 17 "iid": 9, 18 "group_id": 5, 19 "title": "Iteration I", 20 "description": "Ipsum Lorem", 21 "state": 1, 22 "created_at": "2020-01-27T05:07:12.573Z", 23 "updated_at": "2020-01-27T05:07:12.573Z", 24 "due_date": null, 25 "start_date": null 26 }, 27 "action": "add" 28 }, 29 { 30 "id": 143, 31 "user": { 32 "id": 1, 33 "name": "管理员", 34 "username": "root", 35 "state": "active", 36 "avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", 37 "web_url": "http://gitlab.example.com/root" 38 }, 39 "created_at": "2018-08-21T14:38:20.077Z", 40 "resource_type": "Issue", 41 "resource_id": 253, 42 "iteration": { 43 "id": 53, 44 "iid": 13, 45 "group_id": 5, 46 "title": "Iteration II", 47 "description": "Ipsum Lorem ipsum", 48 "state": 2, 49 "created_at": "2020-01-27T05:07:12.573Z", 50 "updated_at": "2020-01-27T05:07:12.573Z", 51 "due_date": null, 52 "start_date": null 53 }, 54 "action": "remove" 55 } 56]
获取单个议题迭代事件
返回特定项目议题的单个迭代事件。
plaintextGET /projects/:id/issues/:issue_iid/resource_iteration_events/:resource_iteration_event_id
参数:
| 属性 | 类型 | 必需 | 描述 |
|---|---|---|---|
| id | 整数/字符串 | 是 | 项目的 ID 或 URL 编码路径 |
| issue_iid | 整数 | 是 | 议题的 IID |
| resource_iteration_event_id | 整数 | 是 | 迭代事件的 ID |
示例请求:
shellcurl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/issues/11/resource_iteration_events/143"
示例响应:
json1{ 2 "id": 143, 3 "user": { 4 "id": 1, 5 "name": "管理员", 6 "username": "root", 7 "state": "active", 8 "avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", 9 "web_url": "http://gitlab.example.com/root" 10 }, 11 "created_at": "2018-08-21T14:38:20.077Z", 12 "resource_type": "Issue", 13 "resource_id": 253, 14 "iteration": { 15 "id": 53, 16 "iid": 13, 17 "group_id": 5, 18 "title": "Iteration II", 19 "description": "Ipsum Lorem ipsum", 20 "state": 2, 21 "created_at": "2020-01-27T05:07:12.573Z", 22 "updated_at": "2020-01-27T05:07:12.573Z", 23 "due_date": null, 24 "start_date": null 25 }, 26 "action": "remove" 27}