可以获取项目下迭代
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListDevopsProjectSprints |
系统规定参数。取值:ListDevopsProjectSprints。 |
OrgId | String | 是 | 60b89885941c8f003fxxxxx |
企业标识,也称企业id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrgId】 |
ProjectId | String | 是 | 60b89885941c8f003fxxxxx |
项目ID,可以在项目链接中获取,如 https://devops.aliyun.com/project/【ProjectId】/story/section/all |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ErrorCode | String | “” |
错误码 |
ErrorMsg | String | “” |
错误信息 |
Object | Array of Sprint |
返回值 |
|
Accomplished | String | "" |
"" |
Created | String | 2021-06-07T07:40:36.188Z |
创建时间 |
CreatorId | String | 60b89885941c8f003fxxxxx |
创建者 |
DueDate | String | 2021-06-07T07:40:36.188Z |
截止时间 |
Id | String | 60b89885941c8f003fxxxxx |
迭代id |
IsDeleted | Boolean | false |
是否删除 |
Name | String | 迭代名称 |
迭代名称 |
PlanToDo | Struct |
计划工时 |
|
StoryPoints | Integer | 0 |
故事点 |
Tasks | Integer | 0 |
任务数 |
WorkTimes | Integer | 0 |
工时 |
ProjectId | String | 60b89885941c8f003fxxxxx |
项目id |
StartDate | String | 2021-06-07T07:40:36.188Z |
开始时间 |
Status | String | future |
迭代状态(future-未开始 active-进行中 complete-完成) |
Updated | String | 2021-06-07T07:40:36.188Z |
更新时间 |
RequestId | String | ASSDS-ASSASX-XSAXSA-XSAXSAXS |
请求id,每次请求都是唯一值,便于后续排查问题 |
Successful | Boolean | true |
true 接口调用成功,false 接口调用失败 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListDevopsProjectSprints
&OrgId=60b89885941c8f003fxxxxx
&ProjectId=60b89885941c8f003fxxxxx
&<公共请求参数>
正常返回示例
JSON
格式
{"RequestId":"ASSDS-ASSASX-XSAXSA-XSAXSAXS","ErrorMsg":"“”","Object":[{"Status":"","StartDate":"","IsDeleted":"","Accomplished":"","Updated":"","CreatorId":"","ProjectId":"","Id":"","DueDate":"","Name":"","Created":"","PlanToDo":{"Tasks":"","WorkTimes":"","StoryPoints":""}}],"ErrorCode":"“”","Successful":"true"}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | InvalidOrganization.NotFound | The specified organization doe not exist. | 企业信息有误,未找到该企业 |
404 | InvalidUser.NotFound | The specified user does not exist. | 用户数据有误,未找到该用户 |
400 | InvalidUser.UserNotInCurrentOrganization | The user does not belong to the specified organization. | 当前用户不属于该企业 |
访问错误中心查看更多错误码。