查询工作项关联 - ListE2EGraphsOpenAPI
功能介绍
查询工作项关联
调用方法
请参见如何调用API。
授权信息
当前API调用无需身份策略权限。
URI
GET /v1/ipdprojectservice/projects/{project_id}/e2e/graphs
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 参数解释: 项目的32位uuid,项目唯一标识,通过查询项目列表接口获取,响应消息体中的project_id字段的值就是项目ID。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
请求参数
无
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 工作项id |
project_id | String | 项目id |
domain_id | String | 需求空间id |
belonging | String | 所属需求空间 |
category | String | 工作项类型 |
number | String | 工作项编号 |
status | String | 参数解释: 工作项状态。 取值范围: 初始:初始态 分析:分析态 测试:测试态 开发:开发态 完成:完成态 |
title | String | 标题 |
trace_list | Array of OpenAPIE2ETraceEntityMap objects | 追溯项列表 |
message | String | 消息 |
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 参数解释: 密级字段id。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
display_value | String | 参数解释: 密级字段名称。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
value | String | 参数解释: 用户自定义的密级字段的值。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 value: |
code | String | 参数解释: 密级编码。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
sequence | Double | 参数解释: 密级排序值,越大级别越高 |
参数 | 参数类型 | 描述 |
|---|---|---|
associate_type | String | 参数解释: 工作项关联类型。 取值范围: parent_issues:关联父工作项 child_issues:关联子工作项 associate_workitems:关联工作项 associate_documents:关联文档 associate_branches:关联代码分支 associate_commits:关联代码提交记录 associate_mergerequest:关联代码合入记录 associate_testcases:关联测试用例 associate_testplans:关联测试计划 |
direction | String | 方向 |
sequence | String | 序号 |
entities | Array of OpenAPIE2ETraceBaseEntity objects | 追溯项列表 |
children | Array of OpenAPIE2ETraceEntityMap objects | 追溯项列表 |
count | Integer | 数量 |
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 树结构ID |
title | String | 标题 |
belonging | String | 归属项目 |
project_id | String | 归属项目 |
type | String | 参数解释: 工作项类型。 取值范围: 系统设备类项目可选值为:RR/SF/IR/SR/AR/Task/Bug 独立软件类项目可选值为:RR/SF/IR/US/Task/Bug 云服务类项目可选值为:RR/Epic/FE/US/Task/Bug |
storage_type | String | 参数解释: 存储类型。 取值范围: local:本地存储 obs:obs文件库 |
category | String | 工作项类型 |
number | String | 编号 |
status | String | 参数解释: 工作项状态。 取值范围: 初始:初始态 分析:分析态 测试:测试态 开发:开发态 完成:完成态 |
commit_id | String | commit id |
commit_short_id | String | commit short id |
commit_msg | String | 提交消息 |
commit_url | String | 提交url |
uri | String | uri |
请求示例
GET https://{endpoint}/v1/ipdprojectservice/projects/58b214adfc834e0bb71c09e212759423/e2e/graphs?issue_id=1121459690961543169&category=SF 响应示例
状态码:200
OK
{
"status" : "初始",
"id" : "1121459690961543169",
"domain_id" : "1120389044916760576",
"belonging" : "YCQ_IPD_M1_0419",
"project_id" : "58b214adfc834e0bb71c09e212759423",
"category" : "SF",
"number" : "SF20250422376840",
"title" : "SF迁移测试",
"trace_list" : [ {
"associate_type" : "associate_documents",
"direction" : "right",
"sequence" : 7,
"entities" : [ ],
"children" : [ ],
"count" : 0
}, {
"associate_type" : "child_issues",
"direction" : "right",
"sequence" : 4,
"entities" : [ ],
"children" : [ ],
"count" : 0
}, {
"associate_type" : "wikis",
"direction" : "right",
"sequence" : 8,
"entities" : [ ],
"children" : [ ],
"count" : 0
}, {
"associate_type" : "associate_workitems",
"direction" : "right",
"sequence" : 6,
"entities" : [ ],
"children" : [ {
"associate_type" : "Task",
"direction" : "right",
"sequence" : 8,
"entities" : [ ],
"children" : [ ],
"count" : 0
}, {
"associate_type" : "RR",
"direction" : "right",
"sequence" : 1,
"entities" : [ ],
"children" : [ ],
"count" : 0
} ],
"count" : 0
}, {
"associate_type" : "associate_testcases",
"direction" : "right",
"sequence" : 9,
"entities" : [ ],
"children" : [ ],
"count" : 0
} ]
} 状态码
状态码 | 描述 |
|---|---|
200 | OK |
错误码
请参见错误码。

