# 查询需求下的所有任务
用于查询需求下的所有任务
# 请求
基本 | |
---|---|
HTTP URL | https://hi-gw.weizhipin.com/open-apis/gaea/v1/demand/tasks |
HTTP Method | POST |
支持的应用类型 | 自建应用 |
权限要求开启任一权限即可 | [喜鹊]-[查询需求下的所有任务] |
# 请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token "示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" |
Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
# 请求体
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
system_code | string | 是 | 系统标识 |
space_id | string | 是 | 空间id |
record_id | string | 是 | 需要查询的工作项记录id |
user_id | string | 是 | 用户id值 |
user_id_type | string | 是 | 用户id类型,控制参数内用户 ID 的类型示例值:"open_id" 可选值有: open_id:用户的 open id union_id:用户的 union id user_id:用户的 user id 默认值:open_id |
请求体示例
{
"system_code": "AB", //示例值
"space_id": "17ec343ef1beb61b1k0Z", //示例值
"record_id": "WRECORD_1739581313998123008", //示例值
"user_id": "11111704", //示例值
"user_id_type": "user_id" //示例值
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# 响应
# 响应体
{
"code": "0",
"traceId": "",
"data": [
{
"recordId": "xxx", //工作项记录id
"recordName": "xxxxx", //工作项记录名称
"workItemId": "xxx", //工作项id
"categoryCode": "task", //工作项类别,需求:feature, 任务:task, 版本:version
"spaceId": "17ec343ef1beb61b1k0Z", //所属空间id
"fieldValueList": [
{
"componentName": "MultiplePeopleField",
"fieldData": [
{
"avatarUrl": "https://bosshi-admin-qa.weizhipin.com/api/common/media/download/e47e11c6f5abed5chRpdTay5rPSAevDdJHl6ZvGUyxQdI1KWyT7L-iHq5fWYufDvamSUarTEk7AfS_0hN20cwDrpZC-GkMqLaLyoy-mBf63yNrun.png?avatarType=1",
"name": "于大朋",
"staffId": 2000644,
"tenantId": 907
}
],
"fieldId": "multiplePeopleField_pm",
"fieldType": "MULTIPLE_PEOPLE_FIELD",
"filedSourceEnum": "SELF",
"label": "PM"
},
{
"componentName": "MultipleCrossSpaceWorkItemField",
"fieldData": [
{
"createTime": 1701262763000,
"creatorName": "陈佳佳01",
"creatorStaffId": 202954,
"recordId": "WRECORD_1729847523423809536",
"recordTitle": "酷酷",
"spaceCode": "zhipintest",
"tenantId": 907,
"workItemIcon": "https://histatic.zhipin.com/front/images/qfnjZT8eomy9WpNWtqukAC_480x480.png",
"workItemId": "WITEM_1717798491826417664",
"workItemName": "需求",
"workViewId": 1089
}
],
"fieldId": "_cross_space_record",
"fieldType": "MULTIPLE_CROSS_SPACE_WORK_ITEM_FIELD",
"filedSourceEnum": "SELF",
"label": "相关工作项"
},
{
"componentName": "TextField",
"fieldData": [
{
"value": "测试展示字段说明"
}
],
"fieldId": "_title",
"fieldType": "TEXT_FIELD",
"filedSourceEnum": "SELF",
"label": "需求名称"
},
{
"componentName": "MultipleWorkItemField",
"fieldData": [
{
"createTime": 1701251532000,
"recordId": "WRECORD_1729800415769522176",
"recordTitle": "版本A",
"tagProps": {
"backgroundColor": "#EEEDFB",
"fontColor": "#463CAF"
},
"workItemId": "WITEM_1717798491826417666"
},
{
"createTime": 1700551112000,
"recordId": "WRECORD_1726862642951483392",
"recordTitle": "V11.24",
"tagProps": {
"backgroundColor": "#F3F5E6",
"fontColor": "#6D7807"
},
"workItemId": "WITEM_1717798491826417666"
},
{
"createTime": 1700704469000,
"recordId": "WRECORD_1727505868767064064",
"recordTitle": "V11.26",
"tagProps": {
"backgroundColor": "#FBEAEA",
"fontColor": "#AB2222"
},
"workItemId": "WITEM_1717798491826417666"
},
{
"createTime": 1698653820000,
"recordId": "WRECORD_1718904823816122368",
"recordTitle": "V11.25",
"tagProps": {
"backgroundColor": "#E8F0FE",
"fontColor": "#1650C2"
},
"workItemId": "WITEM_1717798491826417666"
}
],
"fieldId": "multipleWorkItemField_version",
"fieldType": "MULTIPLE_WORK_ITEM_FIELD",
"filedSourceEnum": "SELF",
"label": "版本"
},
{
"componentName": "SingleChoiceField",
"fieldData": [
{
"label": "产品需求-非版本",
"orderIndex": 1698392297410,
"tagProps": {
"backgroundColor": "#F3F5E6",
"fontColor": "#6D7807"
},
"value": "GAEA1717807916424404992"
}
],
"fieldId": "_process",
"fieldType": "SINGLE_CHOICE_FIELD",
"filedSourceEnum": "SELF",
"label": "需求类型"
},
{
"componentName": "IntegerField",
"fieldData": [
{
"value": 884324
}
],
"fieldId": "integerField_id",
"fieldType": "INTEGER_FIELD",
"filedSourceEnum": "SELF",
"label": "需求编号"
},
{
"componentName": "MultiplePeopleField",
"fieldData": [
{
"avatarUrl": "https://bosshi-admin-qa.weizhipin.com/api/media/public/TsD7SZk3E7Szl71PYZ6qShbmUMoTJe1L9AdzOr1ahsAqjjlBXXsY2qu9G4VDdNqmlrYdJGrZ5HQ4IjMlmXNOMkDOr4BWHEMQps4qOJaozLRbvtx6cm_xYF37TA~~__660x660_s100.jpg",
"name": "陈佳佳01",
"staffId": 202954,
"tenantId": 907
}
],
"fieldId": "multiplePeopleField_2th_meeting_participants",
"fieldType": "MULTIPLE_PEOPLE_FIELD",
"filedSourceEnum": "SELF",
"label": "相关协作组长"
},
{
"componentName": "DateField",
"fieldData": [
{
"format": "yyyy/MM/dd",
"value": 1701251306627
}
],
"fieldId": "_create_time",
"fieldType": "DATE_FIELD",
"filedSourceEnum": "SELF",
"label": "创建时间"
},
{
"componentName": "SingleChoiceField",
"fieldData": [
{
"label": "否",
"orderIndex": 10,
"tagProps": {
"backgroundColor": "#F3F5E6",
"fontColor": "#6D7807"
},
"value": "10"
}
],
"fieldId": "singleChoiceField_need_ui",
"fieldType": "SINGLE_CHOICE_FIELD",
"filedSourceEnum": "SELF",
"label": "是否需要UI"
},
{
"componentName": "SinglePeopleField",
"fieldData": [
{
"avatarUrl": "https://bosshi-admin-qa.weizhipin.com/api/media/public/TsD7SZk3E7Szl71PYZ6qShbmUMoTJe1L9AdzOr1ahsAqjjlBXXsY2qu9G4VDdNqmlrYdJGrZ5HQ4IjMlmXNOMkDOr4BWHEMQps4qOJaozLRbvtx6cm_xYF37TA~~__660x660_s100.jpg",
"name": "陈佳佳01",
"staffId": 202954,
"tenantId": 907
}
],
"fieldId": "_creator",
"fieldType": "SINGLE_PEOPLE_FIELD",
"filedSourceEnum": "SELF",
"label": "创建人"
},
{
"componentName": "StateField",
"fieldData": [
{
"flag": 1,
"label": "待启动",
"orderIndex": 1,
"type": "start",
"value": "default_start"
}
],
"fieldId": "_state",
"fieldType": "STATE_FIELD",
"filedSourceEnum": "SELF",
"label": "状态"
},
{
"componentName": "MultipleChoiceField",
"fieldData": [
{
"label": "优选",
"orderIndex": 0,
"tagProps": {
"backgroundColor": "#E8F0FE",
"fontColor": "#1650C2"
},
"value": "0"
}
],
"fieldId": "multipleChoiceField_business",
"fieldType": "MULTIPLE_CHOICE_FIELD",
"filedSourceEnum": "SELF",
"label": "业务"
},
{
"componentName": "DateField",
"fieldData": [
{
"format": "yyyy/MM/dd",
"value": 1701311096833
}
],
"fieldId": "_update_time",
"fieldType": "DATE_FIELD",
"filedSourceEnum": "SELF",
"label": "最后更新时间"
}
]
}
],
"msg": "操作成功"
}
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
如果响应非成功状态,请对照 错误码文档
← 查询指定版本下的全部需求列表 概述 →