查询工作项状态列表
功能介绍
查询工作项状态列表
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v1/ipdprojectservice/projects/{project_id}/status
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目id |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
categories |
是 |
String |
工作项类型,系统设备类项目可选值为:RR/SF/IR/SR/AR/Task/Bug,独立软件类项目可选值为:RR/SF/IR/US/Task/Bug,云服务类项目可选值为:RR/Epic/FE/US/Task/Bug.支持多种工作项类型,使用英文逗号分隔,如category=IR,SR,AR. 传项目外的工作项类型会被过滤掉 |
请求参数
无
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
result |
StatusListResult object |
状态列表 |
status |
String |
查询结果状态 |
message |
String |
错误信息 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
状态id |
belonging |
String |
工作项的状态属性,START、IN_PROGRESS、END |
display_value |
String |
状态名 |
code |
String |
状态唯一标识 |
created_by |
String |
状态创建人 |
created_time |
String |
状态创建时间 |
modified_by |
String |
状态修改人 |
modified_time |
String |
状态最近修改时间 |
category_code |
Array of strings |
状态被哪些工作项使用 |
状态码: 400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误描述 |
请求示例
{endpoint}/v1/ipdprojectservice/projects/336ad84c67ea4783b2edc1bb5a112da0/status?categories=FE,IR
响应示例
状态码: 200
OK
{ "status" : "success", "message" : null, "result" : { "status" : [ { "id" : "954399210965348356", "belonging" : "START", "display_value" : "初始", "code" : "Start", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "IR", "SR" ] }, { "id" : "954399210965348363", "belonging" : "START", "display_value" : "分析", "code" : "Analyse", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "Bug", "IR", "SR" ] }, { "id" : "958806581085904896", "belonging" : "IN_PROGRESS", "display_value" : "openapi-test", "code" : "s7150727397899378688", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1706526902000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1706526902000", "category_code" : [ "IR" ] }, { "id" : "954399210965348376", "belonging" : "IN_PROGRESS", "display_value" : "测试", "code" : "Test", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "Bug", "IR", "SR" ] }, { "id" : "954399210965348369", "belonging" : "IN_PROGRESS", "display_value" : "开发", "code" : "Develop", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "IR", "SR" ] }, { "id" : "954399210961154063", "belonging" : "IN_PROGRESS", "display_value" : "确认", "code" : "ToBeConfirmed", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "Bug" ] }, { "id" : "954399210965348354", "belonging" : "IN_PROGRESS", "display_value" : "修复", "code" : "Fixed", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "Bug" ] }, { "id" : "954399210961154057", "belonging" : "IN_PROGRESS", "display_value" : "验收", "code" : "Checking", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "Bug" ] }, { "id" : "954399210961154060", "belonging" : "END", "display_value" : "关闭", "code" : "Closed", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "Bug" ] }, { "id" : "954399210965348381", "belonging" : "END", "display_value" : "完成", "code" : "Finish", "created_by" : "a360371833bf4c558f796fd707b44daf", "created_time" : "1705476103000", "modified_by" : "a360371833bf4c558f796fd707b44daf", "modified_time" : "1705476103000", "category_code" : [ "IR", "SR" ] } ] } }
状态码: 400
{
"error_code": "PM.02175903",
"error_msg": "工作项类型错误"
}
{ "error_code" : "PM.02175000", "error_msg" : "系统繁忙,请稍后再试" }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
400 |
{ "error_code": "PM.02175903", "error_msg": "工作项类型错误" } |
错误码
请参见错误码。