# 说明
返回符合查询条件的所有需求模板
# url
https://apiv2.tapd.tencent.com/stories/template_list
# 支持格式
JSON/XML(默认JSON格式)
# HTTP请求方式
GET
# 请求数限制
默认返回所有需求模板
# 请求参数
| 字段名 | 必选 | 类型及范围 | 说明 | 特殊规则 | 
|---|---|---|---|---|
| workspace_id | 是 |  integer | 项目ID | |
| workitem_type_id | 否 | integer | 需求类别ID | 
# 调用示例及返回结果
curl -u 'api_user:api_password' 'https://apiv2.tapd.tencent.com/stories/template_list?workspace_id=10104801'
# curl 使用 OAuth Access Token 鉴权调用示例
curl -H 'Authorization: Bearer ACCESS_TOKEN' 'https://apiv2.tapd.tencent.com/stories/template_list?workspace_id=10104801'
# 返回结果
{
    "status": 1,
    "data": [
        {
            "WorkitemTemplate": {
                "id": "1010104801000002561",
                "name": "系统默认模板",
                "description": "系统自动创建xxx",
                "sort": "1",
                "default": "1",
                "creator": "SYSTEM",
                "editor_type": "1"
            }
        },
        {
            "WorkitemTemplate": {
                "id": "1010104801000068641",
                "name": "创建需求模板",
                "description": "QQ",
                "sort": "1",
                "default": "0",
                "creator": "v_xuanfang",
                "editor_type": "1"
            }
        }
    ],
    "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
27
28
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
27
28
# 需求模板字段说明
# 需求模板重要字段说明
| 字段 | 说明 | 
|---|---|
| workspace_id | 项目ID | 
| id | 模板ID | 
| name | 标题 | 
| description | 详细描述 | 
| default | 是否启用 | 
| creator | 提交人 | 
← 获取需求所有字段的中英文 获取需求模板字段 →