导出查询jira中sprint列表的接口说明文档
时间: 2023-06-15 09:06:49 浏览: 275
要导出Jira中的Sprint列表,您可以通过Jira的REST API来实现。以下是查询Sprint列表的接口说明文档:
## 请求
```
GET /rest/agile/1.0/board/{boardId}/sprint
```
### 请求参数
| 参数 | 类型 | 描述 |
| --------- | ------ | ------------------------------- |
| boardId | string | 要查询Sprint列表的Jira board ID |
### 示例请求
```
GET /rest/agile/1.0/board/1/sprint
```
## 响应
### 响应参数
| 参数 | 类型 | 描述 |
| ------------- | -------- | ------------------------------------------------------------ |
| id | integer | Sprint ID |
| self | string | Sprint API链接 |
| state | string | Sprint状态(如active、closed) |
| name | string | Sprint名称 |
| startDate | datetime | Sprint开始日期(格式为YYYY-MM-DDTHH:MM:SS.SSSZ) |
| endDate | datetime | Sprint结束日期(格式为YYYY-MM-DDTHH:MM:SS.SSSZ) |
| completeDate | datetime | Sprint完成日期(格式为YYYY-MM-DDTHH:MM:SS.SSSZ)(如果Sprint已关闭) |
| originBoardId | integer | Sprint所属的Jira board ID |
### 示例响应
```
{
"maxResults": 50,
"startAt": 0,
"isLast": true,
"values": [
{
"id": 1,
"self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/1",
"state": "active",
"name": "Sprint 1",
"startDate": "2022-01-01T00:00:00.000Z",
"endDate": "2022-01-14T00:00:00.000Z",
"completeDate": null,
"originBoardId": 1
},
{
"id": 2,
"self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/2",
"state": "closed",
"name": "Sprint 2",
"startDate": "2022-01-15T00:00:00.000Z",
"endDate": "2022-01-28T00:00:00.000Z",
"completeDate": "2022-01-28T12:00:00.000Z",
"originBoardId": 1
}
]
}
```
阅读全文