# 说明
新增自动化规则
# url
https://apiv2.tapd.tencent.com/auto_tasks
# HTTP请求方式
POST
Content-Type:application/json
# 请求参数(mainJson)
# mainJson对象
自动化规则json报文(如果出现中文需要转unicode)
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
workspace_id | 是 | string | 项目id |
operator | 是 | string | 操作人nick |
title | 是 | string | 自动化规则标题 |
description | 是 | string | 自动化规则描述,为空传"" |
trigger | 是 | trigger | 自动化助手触发器 |
children | 否 | rootBranch[] | 自动化助手执行根分支,如果你的自动化规则希望配置条件限制,这个对象必传 |
action | 否 | action[] | 自动化助手执行器数组(无条件触发) |
注:children和action至少选择一个传,支持都传
# trigger对象
自动化规则触发器,你将会在这个对象配置自动化规则触发细节
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
obj_key | 是 | string | trigger obj key |
obj_name | 是 | string | trigger obj name |
obj_code | 是 | string | trigger obj code |
obj_sub_code | 是 | string | trigger obj sub code,一般对象传"" |
data | 是 | event[] | 自动化助手触发器事件选项配置 |
# action对象
自动化规则执行器,你将会在这个对象配置自动化规则执行细节(在mainJson根目录配置的action属于无条件执行,在条件分支下的action属于有条件执行)
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
obj_key | 是 | string | executor obj key |
obj_name | 是 | string | executor obj name |
data | 是 | event[] | 自动化助手执行器事件选项配置 |
# event对象
trigger/executor事件选项配置对象
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
key | 是 | string | 事件选项配置标识key |
name | 是 | string | 事件选项配置名称name |
label | 是 | string | 事件选项配置显示名label |
operator | 是 | string | 事件选项配置描述符operator |
value | 是 | value | 事件选项配置值value,大部分情况下是string,如果有嵌套则是对象数组,根据不同的事件选项配置而不同 |
# rootBranch对象
自动化规则条件/执行根分支,你将会在这个对象配置自动化规则根据条件的执行细节
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
child_relation | 是 | string | children需要满足的关系,取值XAND、XOR |
children | 是 | branch[] | 自动化助手执行分支的数组 |
# branch对象
自动化规则条件/执行分支,你将会在这个对象配置自动化规则根据条件的执行细节
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
conditionOptionType | 是 | string | condition需要满足的关系,取值and、or |
condition | 是 | condition[] | 自动化助手执行分支的条件数组 |
action | 是 | action[] | 自动化助手执行分支的执行器数组 |
# condition对象
自动化规则过滤器,也就是条件卡片对象,例如(需求字段,子需求,缺陷,任务,关联分支)
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
key | 是 | string | condition obj key,写死condition:type |
name | 是 | string | condition obj name |
value | 是 | string | condition obj value |
isSkipEmpty | 是 | string | 该condition没有找到关联的某对象时跳过该条件校验,例如当没有子需求的时候跳过,取值0,1(跳过) |
passType | 是 | string | 所有/任一关联对象生效,例如任一子需求满足条件即满足,取值part、all |
filter | 是 | conditionItemTree | condtion对象的根条件树 |
# conditionItemTree对象
自动化规则条件组
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
optionType | 是 | string | conditionItem或者conditionItemTree需要满足的关系,取值and、or |
data | 是 | Mix(condtionItem/conditionItemTree)[] | 对象数组,成员可以是conditionItem或者conditionItemTree,表示多级条件,成员如果是conditionItem表示叶子节点 |
# conditionItem对象
自动化规则条件
字段名 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
fieldLabel | 是 | string | conditionItem 字段名 |
fieldSystemName | 是 | string | conditionItem 字段系统标识 |
fieldOption | 是 | string | conditionItem 比较符 |
value | 是 | string | conditionItem 判断值 |
# 调用示例及返回结果
# 新增附件
# curl 使用 Basic Auth 鉴权调用示例
curl -u 'api_user:api_password' --request POST -header 'Content-Type: application/json' --data-raw '${mainJson}' 'https://apiv2.tapd.tencent.com/auto_tasks'
# curl 使用 OAuth Access Token 鉴权调用示例
curl -H 'Authorization: Bearer ACCESS_TOKEN' --request POST -header 'Content-Type: application/json' --data-raw '${mainJson}' 'https://apiv2.tapd.tencent.com/auto_tasks'
# $mainJson示例
{
"title": "javietest",
"description": "",
"workspace_id": "20358410",
"operator": "javierjin",
"trigger": {
"obj_key": "merge_story",
"obj_name": "\u9700\u6c42",
"obj_code": "merge_story",
"obj_sub_code": "",
"data": [
{
"value": "merge_story::status_change",
"key": "event",
"name": "\u72b6\u6001\u6d41\u8f6c",
"operator": "single_in",
"label": "\u8bf7\u9009\u62e9\u4e8b\u4ef6"
},
{
"value": "all",
"key": "workitem_type_id",
"name": "\u6240\u6709\u7c7b\u522b",
"operator": "multi_in",
"label": "\u8bf7\u9009\u62e9\u9700\u6c42\u7c7b\u522b"
},
{
"value": "smartcommit_anyone",
"key": "event.status:fromto:from",
"name": "\u4efb\u4e00\u72b6\u6001",
"operator": "single_in",
"label": "\u6d41\u8f6c\u524d\u72b6\u6001"
},
{
"value": "developing|resolved",
"key": "event.status:fromto:to",
"name": "\u5b9e\u73b0\u4e2d|\u5df2\u5b9e\u73b0",
"operator": "multi_in",
"label": "\u6d41\u8f6c\u81f3\u72b6\u6001"
}
]
},
"action": [
{
"obj_key": "merge_story",
"obj_name": "\u9700\u6c42",
"data": [
{
"value": "merge_story::field_change",
"key": "event",
"name": "\u5b57\u6bb5\u66f4\u65b0",
"operator": "single_in",
"label": "\u8bf7\u9009\u62e9\u4e8b\u4ef6"
},
{
"value": "self:Is",
"key": "event.object",
"name": "\u89e6\u53d1\u9700\u6c42",
"operator": "single_in",
"label": "\u6267\u884c\u8303\u56f4"
},
{
"value": [
{
"fieldName": "priority",
"type": "default_value",
"value": "High",
"keyFreeze": "0",
"typeFreeze": "0",
"valueFreeze": "0",
"fieldLabel": "\u4f18\u5148\u7ea7",
"valueLabel": "High"
}
],
"key": "event.story::fields",
"name": "1 \u4e2a\u5b57\u6bb5",
"operator": "equal",
"label": "\u5b57\u6bb5\u53d8\u66f4"
}
]
}
],
"children": [
{
"child_relation": "XAND",
"children": [
{
"condition": [
{
"key": "condition:type",
"name": "\u9700\u6c42\u5b57\u6bb5",
"value": "story",
"isSkipEmpty": "0",
"filter": {
"optionType": "and",
"data": [
{
"fieldLabel": "\u6807\u9898",
"fieldSystemName": "name",
"fieldOption": "like",
"value": "javier"
},
{
"optionType": "or",
"data": [
{
"fieldLabel": "\u5904\u7406\u4eba",
"fieldSystemName": "owner",
"fieldOption": "user_equal",
"value": "javierjin;"
},
{
"fieldLabel": "\u521b\u5efa\u4eba",
"fieldSystemName": "creator",
"fieldOption": "user_equal",
"value": "javierjin;"
}
]
}
]
},
"passType": "all"
},
{
"key": "condition:type",
"name": "\u5b50\u9700\u6c42",
"value": "child-story",
"isSkipEmpty": "0",
"filter": {
"optionType": "and",
"data": [
{
"fieldLabel": "\u6807\u9898",
"fieldSystemName": "name",
"fieldOption": "like",
"value": "javier children"
}
]
},
"passType": "part"
}
],
"conditionOptionType": "and",
"action": [
{
"obj_key": "qywechat",
"obj_name": "\u4f01\u4e1a\u5fae\u4fe1",
"data": [
{
"value": "qywechat::send_pipeline_message",
"key": "event",
"name": "\u7fa4\u673a\u5668\u4eba\/\u5c0f\u9ed1\u677f",
"operator": "single_in",
"label": "\u8bf7\u9009\u62e9\u4e8b\u4ef6"
},
{
"value": "wrkSFfCgAAQx2z0zlAJItirfaIrcdcLg",
"key": "qywechat::chat_id",
"name": "javier\u7fa4\u804a\u673a\u5668\u4eba\u6d4b\u8bd5\u7fa4",
"operator": "single_in",
"label": "\u9009\u62e9\u4f01\u4e1a\u5fae\u4fe1\u7fa4\/\u5c0f\u9ed1\u677f"
},
{
"value": "hello world",
"key": "qywechat::notify_tip",
"name": "hello world",
"operator": "equal",
"label": "\u8bbe\u7f6e\u6d88\u606f\u63d0\u793a\u8bed"
},
{
"value": {
"receiver_user": ""
},
"key": "qywechat::receiver_group",
"name": "",
"label": "\u9009\u62e9\u6d88\u606f@\u6210\u5458"
},
{
"value": "default_template",
"key": "qywechat::status_update_message_template",
"name": "\u9ed8\u8ba4\u6a21\u677f",
"operator": "single_in",
"label": "\u6d88\u606f\u6a21\u677f"
}
]
}
]
}
]
}
]
}
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
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
# 返回结果
{
"code": 0,
"msg": "",
"data": {
"id": "1020358410000050145"
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# 返回说明
返回 | 说明 |
---|---|
id | 成功创建的自动化规则id |
# Auto task cheat sheet
# trigger object
[
{
"id": "30",
"code": "merge_story",
"name": "需求",
"icon": "story",
"app_id": "0",
"sort": "1",
"status": "normal",
"color": "#498EFB",
"is_deleted": "0",
"app_version": "",
"key": "merge_story",
"switch": true,
"display": 1,
"enable_condition": true,
"sub_code": ""
},
{
"id": "32",
"code": "bug",
"name": "缺陷",
"icon": "bug",
"app_id": "0",
"sort": "2",
"status": "normal",
"color": "#F97E7E",
"is_deleted": "0",
"app_version": "",
"key": "bug",
"switch": true,
"display": 1,
"enable_condition": true,
"sub_code": ""
},
{
"id": "33",
"code": "task",
"name": "任务",
"icon": "task",
"app_id": "0",
"sort": "3",
"status": "normal",
"color": "#3F4A56",
"is_deleted": "0",
"app_version": "",
"key": "task",
"switch": true,
"display": 1,
"enable_condition": true,
"sub_code": ""
},
{
"id": "31",
"code": "pipeline",
"name": "流水线",
"icon": "pipeline",
"app_id": "0",
"sort": "4",
"status": "normal",
"color": "#677DF6",
"is_deleted": "0",
"app_version": "",
"key": "pipeline",
"switch": true,
"display": 1,
"enable_condition": false,
"sub_code": ""
},
{
"id": "37",
"code": "iteration",
"name": "迭代",
"icon": "iteration",
"app_id": "0",
"sort": "7",
"status": "normal",
"color": "#677DF6",
"is_deleted": "0",
"app_version": "",
"key": "iteration",
"switch": true,
"display": 1,
"enable_condition": true,
"sub_code": ""
},
{
"id": "35",
"code": "code",
"name": "代码",
"icon": "code",
"app_id": "0",
"sort": "8",
"status": "normal",
"color": "#727D89",
"is_deleted": "0",
"app_version": "",
"key": "code",
"switch": true,
"display": 1,
"enable_condition": false,
"sub_code": ""
},
{
"id": "38",
"code": "schedule",
"name": "时间计划",
"icon": "schedule",
"app_id": "0",
"sort": "8",
"status": "normal",
"color": "#ECB563",
"is_deleted": "0",
"app_version": "",
"key": "schedule",
"switch": true,
"display": 1,
"enable_condition": true,
"sub_code": ""
},
{
"id": "39",
"code": "chatbot_order",
"name": "机器人指令",
"icon": "chatbot_order",
"app_id": "0",
"sort": "9",
"status": "normal",
"color": "#498EFB",
"is_deleted": "0",
"app_version": "",
"key": "chatbot_order",
"switch": true,
"display": 1,
"enable_condition": false,
"sub_code": ""
},
{
"id": "40",
"code": "launch",
"name": "发布评审",
"icon": "launch",
"app_id": "0",
"sort": "10",
"status": "normal",
"color": "#CC8C1A",
"is_deleted": "0",
"app_version": "",
"key": "launch",
"switch": true,
"display": 1,
"enable_condition": false,
"sub_code": ""
},
{
"id": "6346",
"code": "tobject",
"name": "自动化测试条件复制",
"icon": "customize",
"app_id": 0,
"sort": "20",
"status": "hidden",
"color": "#498EFB",
"is_deleted": 0,
"key": "tobject__customize__6346",
"workitem_id": "6346",
"switch": false,
"display": 1,
"enable_condition": true,
"sub_code": ""
},
{
"id": "255",
"code": "tobject",
"name": "项目文档",
"icon": "customize",
"app_id": 0,
"sort": "20",
"status": "hidden",
"color": "#498EFB",
"is_deleted": 0,
"key": "tobject__customize__255",
"workitem_id": "255",
"switch": false,
"display": 1,
"enable_condition": true,
"sub_code": ""
}
]
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
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
# condition object
{
"key": "condition:type",
"label": "\u9009\u62e9\u89e6\u53d1\u64cd\u4f5c",
"fieldType": "select",
"options": [
{
"id": "44",
"key": "story",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u5b57\u6bb5\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-event-update",
"sort": "1",
"name": "\u9700\u6c42\u5b57\u6bb5",
"status": "normal",
"relation": "self",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 0,
"value": "story",
"display": 1,
"switch": true
},
{
"id": "45",
"key": "child-story",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u4e8c\u7ea7\u5b50\u9700\u6c42\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-story",
"sort": "5",
"name": "\u5b50\u9700\u6c42",
"status": "normal",
"relation": "child",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 1,
"value": "child-story",
"display": 1,
"switch": true
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::post_dependency_story",
"key": "merge_story::post_dependency_story",
"relation": "hasMany",
"name": "\u540e\u7f6e\u9700\u6c42",
"description": "\u6dfb\u52a0\u540e\u7f6e\u9700\u6c42\u6761\u4ef6",
"icon": "font-auto-task-obj-story",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "post_dependency_story",
"sort_key": 2,
"value": "merge_story::post_dependency_story"
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::pre_dependency_story",
"key": "merge_story::pre_dependency_story",
"relation": "hasMany",
"name": "\u524d\u7f6e\u9700\u6c42",
"description": "\u6dfb\u52a0\u524d\u7f6e\u9700\u6c42\u6761\u4ef6",
"icon": "font-auto-task-obj-story",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "pre_dependency_story",
"sort_key": 2,
"value": "merge_story::pre_dependency_story"
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::related_story",
"key": "merge_story::related_story",
"relation": "hasMany",
"name": "\u5173\u8054\u9700\u6c42",
"description": "\u6dfb\u52a0\u5173\u8054\u9700\u6c42\u6761\u4ef6",
"icon": "font-auto-task-obj-story",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "related_story",
"sort_key": 2,
"value": "merge_story::related_story"
},
{
"id": "46",
"key": "parent-story",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u4e8c\u7ea7\u7236\u9700\u6c42\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-story",
"sort": "6",
"name": "\u7236\u9700\u6c42",
"status": "normal",
"relation": "parent",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 2,
"value": "parent-story",
"display": 1,
"switch": true
},
{
"id": "47",
"key": "task",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u4e0b\u4efb\u52a1\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-task",
"sort": "9",
"name": "\u4efb\u52a1",
"status": "normal",
"relation": "child",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 3,
"value": "task",
"display": 1,
"switch": true
},
{
"id": "48",
"key": "iteration",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u6240\u5c5e\u8fed\u4ee3\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-condition-iteration",
"sort": "13",
"name": "\u8fed\u4ee3",
"status": "normal",
"relation": "parent",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 4,
"value": "iteration",
"display": 1,
"switch": true
},
{
"id": "73",
"key": "bug",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u4e0b\u7f3a\u9677\u6761\u4ef6",
"created": "2021-12-08 18:12:23",
"modified": "2021-12-08 18:12:23",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-bug",
"sort": "17",
"name": "\u7f3a\u9677",
"status": "normal",
"relation": "child",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 5,
"value": "bug",
"display": 1,
"switch": true
},
{
"id": "255",
"key": "demo_docs",
"type": "tobject",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u5173\u8054\u7684\u9879\u76ee\u6587\u6863\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-customize",
"sort": "50",
"name": "\u9879\u76ee\u6587\u6863",
"status": "normal",
"relation": "parent",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 7,
"value": "tobject__customize__255",
"display": 1,
"switch": false
},
{
"id": "6346",
"key": "auto1_1000079",
"type": "tobject",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u5173\u8054\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6761\u4ef6\u590d\u5236\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-customize",
"sort": "50",
"name": "\u81ea\u52a8\u5316\u6d4b\u8bd5\u6761\u4ef6\u590d\u5236",
"status": "normal",
"relation": "parent",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "",
"env": "1",
"data_uri": "",
"sort_key": 7,
"value": "tobject__customize__6346",
"display": 1,
"switch": false
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::related_cr",
"key": "merge_story::related_cr",
"relation": "hasMany",
"name": "\u5173\u8054\u4ee3\u7801\u8bc4\u5ba1",
"description": "\u6dfb\u52a0\u5173\u8054\u4ee3\u7801\u8bc4\u5ba1\u6761\u4ef6",
"icon": "font-auto-task-obj-cr",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "related_cr",
"sort_key": 11,
"value": "merge_story::related_cr"
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::related_mr",
"key": "merge_story::related_mr",
"relation": "hasMany",
"name": "\u5173\u8054\u5408\u5e76\u8bf7\u6c42",
"description": "\u6dfb\u52a0\u5173\u8054\u5408\u5e76\u8bf7\u6c42\u6761\u4ef6",
"icon": "font-auto-task-obj-mr",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "related_mr",
"sort_key": 12,
"value": "merge_story::related_mr"
},
{
"id": "67",
"key": "associated-branch",
"type": "normal",
"label": "",
"description": "\u6dfb\u52a0\u9700\u6c42\u5173\u8054\u7684\u5173\u8054\u5206\u652f\u6761\u4ef6",
"created": "2021-12-06 20:24:06",
"modified": "2021-12-06 20:24:06",
"is_deleted": "0",
"object_id": "30",
"icon": "font-auto-task-obj-code",
"sort": "23",
"name": "\u5173\u8054\u5206\u652f",
"status": "normal",
"relation": "associated",
"option_uri": "",
"option_uri_type": "self",
"app_version": "",
"app_id": "0",
"gray": "git_branch",
"env": "1",
"data_uri": "",
"sort_key": 12,
"value": "associated-branch",
"display": 1,
"switch": true
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::related_svncommit",
"key": "merge_story::related_svncommit",
"relation": "hasMany",
"name": "\u5173\u8054Svn Commit",
"description": "\u6dfb\u52a0\u5173\u8054Svn Commit\u6761\u4ef6",
"icon": "font-auto-task-obj-svncommit",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "related_svncommit",
"sort_key": 13,
"value": "merge_story::related_svncommit"
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::has_many_tcase",
"key": "merge_story::has_many_tcase",
"relation": "hasMany",
"name": "\u9700\u6c42\u5173\u8054\u6d4b\u8bd5\u7528\u4f8b",
"description": "\u6dfb\u52a0\u9700\u6c42\u5173\u8054\u6d4b\u8bd5\u7528\u4f8b\u6761\u4ef6",
"icon": "font-auto-task-obj-tcase",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "has_many_tcase",
"sort_key": 14,
"value": "merge_story::has_many_tcase"
},
{
"status": "normal",
"type": "condition_relation",
"is_deleted": "0",
"app_id": "0",
"app_version": "",
"gray": "condition_relation",
"display": 1,
"switch": true,
"searchable": false,
"option_uri_type": "self",
"id": "merge_story::has_many_test_plan",
"key": "merge_story::has_many_test_plan",
"relation": "hasMany",
"name": "\u9700\u6c42\u5173\u8054\u6d4b\u8bd5\u8ba1\u5212",
"description": "\u6dfb\u52a0\u9700\u6c42\u5173\u8054\u6d4b\u8bd5\u8ba1\u5212\u6761\u4ef6",
"icon": "font-auto-task-obj-test_plan",
"option_uri": "auto_task.condition_field\/RelationFieldAutoTaskService::get_fields",
"object_code": "merge_story",
"relation_key": "has_many_test_plan",
"sort_key": 15,
"value": "merge_story::has_many_test_plan"
}
]
}
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
# executor object
[
{
"id": "48",
"code": "merge_story",
"name": "\u9700\u6c42",
"icon": "story",
"app_id": "0",
"sort": "1",
"status": "normal",
"color": "#498EFB",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "merge_story",
"switch": true,
"display": 1
},
{
"id": "49",
"code": "pipeline",
"name": "\u6d41\u6c34\u7ebf",
"icon": "pipeline",
"app_id": "0",
"sort": "2",
"status": "normal",
"color": "#677DF6",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "pipeline",
"switch": true,
"display": 1
},
{
"id": "50",
"code": "bug",
"name": "\u7f3a\u9677",
"icon": "bug",
"app_id": "0",
"sort": "3",
"status": "normal",
"color": "#F97E7E",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "bug",
"switch": true,
"display": 1
},
{
"id": "51",
"code": "task",
"name": "\u4efb\u52a1",
"icon": "task",
"app_id": "0",
"sort": "4",
"status": "normal",
"color": "#3F4A56",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "task",
"switch": true,
"display": 1
},
{
"id": "52",
"code": "qywechat",
"name": "\u4f01\u4e1a\u5fae\u4fe1",
"icon": "qywechat",
"app_id": "0",
"sort": "5",
"status": "normal",
"color": "#53A3F4",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "qywechat",
"switch": true,
"display": 1
},
{
"id": "53",
"code": "code",
"name": "\u4ee3\u7801",
"icon": "code",
"app_id": "0",
"sort": "6",
"status": "normal",
"color": "#727D89",
"is_deleted": "0",
"app_version": "",
"gray": "git_branch",
"key": "code",
"switch": true,
"display": 1
},
{
"id": "54",
"code": "webhook",
"name": "Webhook",
"icon": "webhook",
"app_id": "0",
"sort": "7",
"status": "normal",
"color": "#F97E7E",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "webhook",
"switch": true,
"display": 1
},
{
"id": "56",
"code": "mail",
"name": "\u90ae\u4ef6",
"icon": "mail",
"app_id": "0",
"sort": "9",
"status": "normal",
"color": "#53A3F4",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "mail",
"switch": true,
"display": 1
},
{
"id": "58",
"code": "manconfirm",
"name": "\u4eba\u5de5\u786e\u8ba4",
"icon": "manualconfirm",
"app_id": "0",
"sort": "11",
"status": "normal",
"color": "#FFBF4D",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "manconfirm",
"switch": true,
"display": 1
},
{
"id": "55",
"code": "business",
"name": "\u4e1a\u52a1\u7cfb\u7edf",
"icon": "business",
"app_id": "0",
"sort": "8",
"status": "closed",
"color": "#8B95A7",
"is_deleted": "1",
"app_version": "",
"gray": "",
"key": "business",
"switch": true,
"display": 1
},
{
"id": "57",
"code": "tobject",
"name": "\u9879\u76ee\u6587\u6863",
"icon": "customize",
"app_id": "0",
"sort": "10",
"status": "hidden",
"color": "#498EFB",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "tobject__customize__255",
"switch": false,
"display": 1
},
{
"id": "57",
"code": "tobject",
"name": "\u81ea\u52a8\u5316\u6d4b\u8bd5\u6761\u4ef6\u590d\u5236",
"icon": "customize",
"app_id": "0",
"sort": "10",
"status": "hidden",
"color": "#498EFB",
"is_deleted": "0",
"app_version": "",
"gray": "",
"key": "tobject__customize__6346",
"switch": false,
"display": 1
}
]
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
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