# 说明

更新需求,返回需求更新后的数据

# url

https://api.tapd.cn/stories

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

POST

# 请求数限制

每次只允许更新一条数据

# 请求参数

字段名 必选 类型及范围 说明
id integer ID
workspace_id integer 项目ID
name string 标题
priority string 优先级。为了兼容自定义优先级,请使用 priority_label 字段,详情参考:如何兼容自定义优先级
priority_label string 优先级。推荐使用这个字段
business_value integer 业务价值
status string 状态
v_status string 状态(支持传入中文状态名称)
version string 版本
module string 模块
test_focus string 测试重点
size integer 规模
owner string 处理人
current_user string 变更人
cc string 抄送人
developer string 开发人员
begin date 预计开始
due date 预计结束
iteration_id string 迭代ID
effort string 预估工时
effort_completed string 完成工时
remain float 剩余工时
exceed float 超出工时
category_id integer 需求分类
release_id integer 发布计划
source string 来源
type string 类型
description string 详细描述
is_auto_close_task integer 需求流转到结束状态时,是否自动关闭关联的任务。为 1 时会自动关闭;默认取 0,不关闭
label string 标签,标签不存在时将自动创建,多个以英文坚线分格
cus_{$自定义字段别名} string 自定义字段值,参数名会由后台自动转义为custom_field_*,如:cus_这是一个自定义字段的名称
custom_field_* string或者integer 自定义字段参数,具体字段名通过接口 获取需求自定义字段配置 获取
custom_plan_field_* string或者integer 自定义计划应用参数,具体字段名通过接口 获取自定义计划应用 获取

# 调用示例及返回结果

# 更新需求 1010158231500625827 的优先级为高(4),处理人为 anyechen

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' -d 'id=1010158231500625827&priority=4&owner=anyechen;&workspace_id=10158231' 'https://api.tapd.cn/stories'

# 返回结果

{
    "status": 1,
    "data": {
        "Story": {
            "id": "1010158231500625827",
            "name": "官网登录页改造",
            "description": "<div><b><span style=\"color: rgb(68, 68, 68);\">【用户故事(User Story)】<\/span><br  \/><\/b><\/div><b style=\" color: rgb(54, 59, 66) ; ; ; ; ; ; ; ; ; ; ; ;\"><span style=\"color: rgb(255, 0, 0);\"><div><b style=\"color: rgb(54, 59, 66);\"><span style=\"color: rgb(255, 0, 0);\"><br  \/><\/span><\/b><\/div>作为<\/span><\/b><span style=\" color: rgb(54, 59, 66) ; ; ; ; ; ; ; ; ; ; ; ;\">&nbsp;新产品的注册<\/span><span style=\"   ; ; ; ; ; ; ;  \"><span style=\"color:#444444;\">用户<\/span><\/span><div style=\" margin: 0px; padding: 0px ; ; ; ; ; ; ; ; ; ; ; ;\"><span style=\"color:#363b42;\">&nbsp;<\/span><div style=\"margin: 0px; padding: 0px;\"><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\"><b><span style=\"color: rgb(255, 0, 0);\">我希望<\/span><\/b>&nbsp;网站提供一个登陆页面<\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\"><br  \/><\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\"><b><span style=\"color: rgb(255, 0, 0);\">以便<\/span><\/b>&nbsp;我能够每天登陆并使用产品<\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\"><br  \/><\/div><div style=\"margin: 0px; padding: 0px;\"><b><span style=\"color:#363b42;\">【<\/span><span style=\"color:#444444;\">验收标准<\/span><span style=\"color:#363b42;\">】<\/span><\/b><\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\"><br  \/><\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\">1、<\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\">2、<\/div><div style=\"color: rgb(54, 59, 66); margin: 0px; padding: 0px;\">3、<\/div><\/div><\/div>",
            "workspace_id": "10158231",
            "creator": "anyechen",
            "created": "2017-06-12 00:00:05",
            "modified": "2019-06-27 12:58:59",
            "status": "planning",
            "owner": "anyechen;",
            "cc": null,
            "begin": null,
            "due": null,
            "size": "2",
            "priority": "4",
            "developer": null,
            "iteration_id": "0",
            "test_focus": null,
            "type": null,
            "source": null,
            "module": null,
            "version": "",
            "completed": null,
            "category_id": "1010158231000077717",
            "parent_id": "1010158231500625825",
            "children_id": "|",
            "ancestor_id": "1010158231500625825",
            "business_value": null,
            "effort": "0",
            "effort_completed": "0",
            "exceed": "0",
            "remain": "0",
            "release_id": "0",
            "label": "阻塞|延期",
            "cus_自定义字段的名称": "custom_field_value",
            "custom_field_one": null,
            "custom_field_two": null,
            "custom_field_three": null,
            "custom_field_four": null,
            "custom_field_five": null,
            "custom_field_six": null,
            "custom_field_seven": null,
            "custom_field_eight": null,
            "custom_field_9": null,
            "custom_field_10": null,
            "custom_field_11": null,
            "custom_field_12": null,
            "custom_field_13": null,
            "custom_field_14": null,
            "custom_field_15": null,
            "custom_field_16": null,
            "custom_field_17": null,
            "custom_field_18": null,
            "custom_field_19": null,
            "custom_field_20": null,
            "custom_field_21": "",
            "custom_field_22": "",
            "custom_field_23": "",
            "custom_field_24": "",
            "custom_field_25": "",
            "custom_field_26": "",
            "custom_field_27": "",
            "custom_field_28": "",
            "custom_field_29": "",
            "custom_field_30": "",
            "custom_field_31": null,
            "custom_field_32": null,
            "custom_field_33": null,
            "custom_field_34": null,
            "custom_field_35": null,
            "custom_field_36": null,
            "custom_field_37": null,
            "custom_field_38": null,
            "custom_field_39": null,
            "custom_field_40": null,
            "custom_field_41": null,
            "custom_field_42": null,
            "custom_field_43": null,
            "custom_field_44": null,
            "custom_field_45": null,
            "custom_field_46": null,
            "custom_field_47": null,
            "custom_field_48": null,
            "custom_field_49": null,
            "custom_field_50": null,
            "custom_field_51": null,
            "custom_field_52": null,
            "custom_field_53": null,
            "custom_field_54": null,
            "custom_field_55": null,
            "custom_field_56": null,
            "custom_field_57": null,
            "custom_field_58": null,
            "custom_field_59": null,
            "custom_field_60": null,
            "custom_field_61": null,
            "custom_field_62": null,
            "custom_field_63": null,
            "custom_field_64": null,
            "custom_field_65": null,
            "custom_field_66": null,
            "custom_field_67": null,
            "custom_field_68": null,
            "custom_field_69": null,
            "custom_field_70": null,
            "custom_field_71": null,
            "custom_field_72": null,
            "custom_field_73": null,
            "custom_field_74": null,
            "custom_field_75": null,
            "custom_field_76": null,
            "custom_field_77": null,
            "custom_field_78": null,
            "custom_field_79": null,
            "custom_field_80": null,
            "custom_field_81": null,
            "custom_field_82": null,
            "custom_field_83": null,
            "custom_field_84": null,
            "custom_field_85": null,
            "custom_field_86": null,
            "custom_field_87": null,
            "custom_field_88": null,
            "custom_field_89": null,
            "custom_field_90": null,
            "custom_field_91": null,
            "custom_field_92": null,
            "custom_field_93": null,
            "custom_field_94": null,
            "custom_field_95": null,
            "custom_field_96": null,
            "custom_field_97": null,
            "custom_field_98": null,
            "custom_field_99": null,
            "custom_field_100": null
        }
    },
    "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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142

# 需求字段说明

# 需求重要字段说明

字段 说明
id ID
name 标题
priority 优先级
priority_label 优先级
business_value 业务价值
status 状态
version 版本
module 模块
test_focus 测试重点
size 规模
owner 处理人
cc 抄送人
creator 创建人
developer 开发人员
begin 预计开始
due 预计结束
created 创建时间
modified 最后修改时间
completed 完成时间
iteration_id 迭代
effort 预估工时
effort_completed 完成工时
remain 剩余工时
exceed 超出工时
category_id 需求分类
release_id 发布计划
source 来源
type 类型
parent_id 父需求
children_id 子需求
ancestor_id 祖先ID
description 详细描述
workspace_id 项目ID

# 需求优先级(priority)取值字段说明

为了兼容自定义优先级,请使用 priority_label 字段,详情参考:如何兼容自定义优先级下面取值将不再使用

取值 字面值
4 High
3 Middle
2 Low
1 Nice To Have
上次更新: 2024-09-03 17:06:08