更新时间:2025-08-11 GMT+08:00
分享

查询工作项关联

功能介绍

查询工作项关联

调用方法

请参见如何调用API

URI

GET /v1/ipdprojectservice/projects/{project_id}/e2e/graphs

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

参数解释

项目的32位uuid,项目唯一标识,通过查询项目列表接口获取,响应消息体中的project_id字段的值就是项目ID。

约束限制

正则表达式,^[A-Za-z0-9]{32}$。

取值范围

不涉及。

默认取值

不涉及。

表2 Query参数

参数

是否必选

参数类型

描述

issue_id

String

参数解释:工作项唯一Id。可以通过查询工作项列表或者查询树状工作接口获取,响应消息体中的id字段的值就是工作项ID

约束限制:正则表达式,^([0-9]{18,19})$

默认取值:不涉及

category

String

工作项类型

is_src

Boolean

是否跨项目查询工作项

请求参数

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

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

消息

表4 SecurityLevelResult

参数

参数类型

描述

id

String

参数解释:

密级字段id。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

display_value

String

参数解释:

密级字段名称。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

value

String

参数解释:

用户自定义的密级字段的值。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

value:

code

String

参数解释:

密级编码。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

sequence

Double

参数解释:

密级排序值,越大级别越高

表5 OpenAPIE2ETraceEntityMap

参数

参数类型

描述

associate_type

String

关联类型

direction

String

方向

sequence

String

序号

entities

Array of OpenAPIE2ETraceBaseEntity objects

追溯项列表

children

Array of OpenAPIE2ETraceEntityMap objects

追溯项列表

count

Integer

数量

表6 OpenAPIE2ETraceBaseEntity

参数

参数类型

描述

id

String

树结构ID

title

String

标题

belonging

String

归属项目

project_id

String

归属项目

type

String

类型

storage_type

String

存储类型

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

错误码

请参见错误码

相关文档