# 查询工作项列表(需求/版本)
用于查询工作项列表(需求/版本)
# 请求
基本 | |
---|---|
HTTP URL | https://hi-qa.weizhipin.com/open-apis/gaea/v1/work/items |
HTTP Method | POST |
支持的应用类型 | 自建应用 |
权限要求开启任一权限即可 | [喜鹊]-[查询工作项列表(需求/版本)] |
# 请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token "示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" |
Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
# 请求体
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
system_code | string | 是 | 系统标识 |
space_id | string | 是 | 空间id |
user_id | string | 是 | 用户id值 |
user_id_type | string | 是 | 用户id类型,控制参数内用户 ID 的类型示例值:"open_id" 可选值有: open_id:用户的 open id union_id:用户的 union id user_id:用户的 user id 默认值:open_id |
请求体示例
{
"system_code": "AB", //示例值
"space_id": "17ec343ef1beb61b1k0Z", //示例值
"user_id": "11111704", //示例值
"user_id_type": "user_id" //示例值
}
1
2
3
4
5
6
2
3
4
5
6
# 响应
# 响应体
{
"code": "0",
"traceId": "",
"data": [
{
"workItemId": "xxx", //工作项id
"spaceId": "17ec343ef1beb61b1k0Z", //所属空间id
"workItemName": "xxxxx", //工作项名称
"icon": "xxx", //工作项图标
"categoryCode": "task" //工作项类别,需求:feature, 任务:task, 版本:version
}
],
"msg": "操作成功"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
如果响应非成功状态,请对照 错误码文档