# 说明
返回符合查询条件的所有需求关联的缺陷ID
# url
https://apiv2.tapd.tencent.com/stories/get_related_bugs
# 支持格式
JSON/XML(默认JSON格式)
# HTTP请求方式
GET
# 请求数限制
默认返回所有关系
# 请求参数
| 字段名 | 必选 | 类型及范围 | 说明 | 特殊规则 | 
|---|---|---|---|---|
| workspace_id | 是 |  integer | 项目ID | |
| story_id | 是 |  integer | 需求ID | 支持多ID查询 | 
# 调用示例及返回结果
# curl 使用 Basic Auth 鉴权调用示例
curl -u 'api_user:api_password' 'https://apiv2.tapd.tencent.com/stories/get_related_bugs?workspace_id=10104801&story_id=1010104801866181263'
# curl 使用 OAuth Access Token 鉴权调用示例
curl -H 'Authorization: Bearer ACCESS_TOKEN' 'https://apiv2.tapd.tencent.com/stories/get_related_bugs?workspace_id=10104801&story_id=1010104801866181263'
# 返回结果
{
    "status": 1,
    "data": [
        {
            "workspace_id": 10104801,
            "story_id": "1010104801866181263",
            "bug_id": "1010104801083691309"
        },
        {
            "workspace_id": 10104801,
            "story_id": "1010104801866181263",
            "bug_id": "1010104801085894269"
        },
        {
            "workspace_id": 10104801,
            "story_id": "1010104801866181263",
            "bug_id": "1010104801083691321"
        },
        {
            "workspace_id": 10104801,
            "story_id": "1010104801866181263",
            "bug_id": "1010104801083691305"
        }
    ],
    "info": "success"
}
 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 需求关联缺陷字段说明
# 需求关联缺陷重要字段说明
| 字段 | 说明 | 
|---|---|
| workspace_id | 项目ID | 
| story_id | 需求ID | 
| bug_id | 缺陷ID | 
← 获取回收站下的需求 解除需求缺陷关联关系 →