Meegle API — Setting (Field Settings)
APIs under this skill: Get Field Information, Create Custom Field, Update Custom Field.
Get Field Information
Obtain the basic information of all fields under the specified space or, when work_item_type_key is provided, under that work item type. Response follows the SimpleField structure (field_key, field_type_key, options for select, compound_fields for compound_field). Permission: Permission Management – Configuration.
When to Use
- When building field selectors or form UIs that need field keys, types, aliases, and scopes (work_item_scopes)
- When you need option lists for select-type fields (label, value, order, is_disabled, etc.) or sub-fields for compound_field
- When resolving field_key for Update Work Item Basic Information Settings (schedule_field_key, estimate_point_field_key, actual_work_time_field_key) or for work item read/write APIs
API Spec: get_field_information
name: get_field_information
type: api
description: >
Obtain all fields under the space or under a work item type. Returns SimpleField
list: field_key, field_type_key, field_alias, field_name, is_custom_field,
work_item_scopes, value_generate_mode, relation_id; options for select; compound_fields for compound_field.
auth:
type: plugin_access_token
header: X-Plugin-Token
user_header: X-User-Key
http:
method: POST
url: https://{domain}/open_api/{project_key}/field/all
headers:
Content-Type: application/json
X-Plugin-Token: "{{resolved_token}}"
X-User-Key: "{{user_key}}"
path_params:
project_key:
type: string
required: true
description: >
Space ID (project_key) or space domain name (simple_name).
project_key: Double-click space name in Meegle. simple_name: from space URL (e.g. doc).
inputs:
work_item_type_key:
type: string
required: false
description: Work item type. Obtain via Get work item types in space. Omit to get all fields in space.
outputs:
data:
type: array
description: >
List of SimpleField. Each has field_key, field_type_key, field_alias, field_name,
is_custom_field, work_item_scopes, value_generate_mode, relation_id. Select-type
fields include options (order, color, is_visibility, is_disabled, label, value,
work_item_type_key). compound_field type includes compound_fields (array of
field objects with field_key, field_type_key, field_name, etc.).
constraints:
- Permission: Permission Management – Configuration
error_mapping:
30001: Data not found (project_key does not match work_item_type_key; no such work item type in this space)
Usage notes
- work_item_type_key: Omit to return all fields in the space; set to a type (e.g.
story, chart) to return only fields scoped to that type. If the type does not exist in the space, 30001 is returned.
- data items: Use field_key when updating work item type settings (schedule_field_key, etc.) or when sending field values in work item APIs. field_type_key (e.g.
multi_text, select, compound_field) determines value shape.
- options: For select (and similar) fields; value is what to send in API payloads; label is display. compound_fields: For compound_field type; each sub-field has its own field_key and field_type_key.
Create Custom Field
Create a new custom field under the specified work item type. Returns the new field_key. Permission: Permission Management – Work Item Instances. For feature details, see Permission Management.
Points to note
- Work item relationship field default data visibility is fixed; conditional data range cannot be modified.
- Default values are not supported for attachment type or for external system signal / multi-value external system signal.
- Modifying field validity (default valid) is not supported.
- Updating work item type, creator, submission time, completion time, and business line fields is not supported.
- Voting fields are not supported.
When to Use
- When adding a new custom field (text, select, date, user, number, link, etc.) to a work item type
- When reusing options from another field (value_type 1 + reference_work_item_type_key, reference_field_key) or defining custom options (field_value)
- When configuring team_option for cascading single/multi-select (tree_select, tree_multi_select); mutually exclusive with field_value
API Spec: create_custom_field
name: create_custom_field
type: api
description: >
Create a custom field under the specified work item type. Returns field_key.
Supports text, select, tree_select, date, user, number, link, multi_file, bool,
work_item_related_select, etc. field_value and team_option are mutually exclusive.
auth:
type: plugin_access_token
header: X-Plugin-Token
user_header: X-User-Key
http:
method: POST
url: https://{domain}/open_api/{project_key}/field/{work_item_type_key}/create
headers:
Content-Type: application/json
X-Plugin-Token: "{{resolved_token}}"
X-User-Key: "{{user_key}}"
path_params:
project_key:
type: string
required: true
description: >
Space ID (project_key) or space domain name (simple_name).
project_key: Double-click space name in Meegle. simple_name: from space URL (e.g. doc).
work_item_type_key:
type: string
required: true
description: Work item type. Obtain via Get work item types in space.
inputs:
field_name:
type: string
required: true
description: Field name; must not duplicate other fields.
field_alias:
type: string
required: false
description: Field alias; cannot duplicate other fields of the same work item type.
field_type_key:
type: string
required: true
description: >
Field type. See Attributes and fields. Supported: text, multi_text, select,
multi_select, tree_select, tree_multi_select, radio, user, multi_user, date,
schedule, link, number, multi_file, bool, signal, work_item_related_select,
work_item_related_multi_select.
value_type:
type: integer
required: false
description: >
Option source for select/multi_select/tree_select/tree_multi_select/radio.
0: Custom (default); 1: Reuse. When 1, reference_work_item_type_key and reference_field_key required.
field_value:
type: object
required: false
description: >
Option values; structure per Attributes and fields. For select, multi_select,
tree_select, tree_multi_select, radio. Mutually exclusive with team_option.
reference_work_item_type_key:
type: string
required: false
description: Required when value_type = 1.
reference_field_key:
type: string
required: false
description: Required when value_type = 1.
is_multi:
type: boolean
required: false
description: For text: true = multi-line; false = single-line (default).
format:
type: boolean
required: false
description: For date: true = date only; false = date + time (default).
free_add:
type: integer
required: false
description: For select/tree_select etc.: 1 = allow users to add options; 2 = No (default).
work_item_relation_uuid:
type: string
required: false
description: Work item relationship ID from Get field information. Required for work_item_related_select / work_item_related_multi_select.
default_value:
type: object
required: false
description: >
Default value; structure per field type (Attributes and fields). Not supported
for attachment, external system signal, multi-value external system signal.
help_description:
type: string
required: false
description: Help instructions.
authorized_roles:
type: array
items: string
required: false
description: >
Roles or system keys that can access/operate this field. Default "Anyone".
e.g. _master (Administrator), _owner (Creator), _role (Requirement-related person).
team_option:
type: object
required: false
description: >
Team scope per TeamOption. Only for tree_select, tree_multi_select.
Mutually exclusive with field_value.
outputs:
data:
type: string
description: Created field key (e.g. field_73jds7).
constraints:
- Permission: Permission Management – Work Item Instances
- field_value and team_option cannot both be sent
error_mapping:
1000051468: Field alias repeated (field_alias duplicate)
1000051469: Invalid update version (field being concurrently updated)
1000051750: Field name has been used (field_name duplicate)
1000053603: Field name length exceeded (max characters for field name)
Usage notes
- field_type_key: Use supported API types (e.g. text, select, date, user, number, link, multi_file, bool, work_item_related_select, work_item_related_multi_select). See Attributes and fields and the field type support list in the product docs.
- field_value vs team_option: Use field_value for custom/reused option values for select/tree_select etc.; use team_option only for cascading single/multi-select with team scope. Do not send both.
- value_type 1: Set reference_work_item_type_key and reference_field_key to reuse options from another field.
- work_item_relation_uuid: From Get Field Information (relation or work item relation fields). Required for work_item_related_select / work_item_related_multi_select.
- Default values are not supported for attachment, external system signal, or multi-value external system signal fields.
Update Custom Field
Update the configuration of the specified custom field. Identify the field by field_key in the body. Permission: Permission Management – Configuration. For details, see Permission Management.
Points to note
- Work item relationship field default data visibility is fixed; conditional data range cannot be modified.
- Default values are not supported for attachment type or for external system signal / multi-value external system signal.
- Modifying field validity (default valid) is not supported.
- Updating work item type, creator, submission time, completion time, and business line fields is not supported.
- Voting fields are not supported.
- When modifying or adding sub-options (cascading options), parent_value is required.
When to Use
- When changing field name, alias, help description, default value, authorized roles, or option list (field_value with action add/modify/delete)
- When updating team scope (team_option) for cascading single/multi-select; mutually exclusive with field_value
- When updating a composite field: pass parent field_key to change only field_name, field_alias, help_description; pass child field_key to update all attributes
API Spec: update_custom_field
name: update_custom_field
type: api
description: >
Update configuration of the specified custom field. field_key in body identifies
the field. field_value supports option actions (add/modify/delete); parent_value
required for sub-options. field_value and team_option are mutually exclusive.
auth:
type: plugin_access_token
header: X-Plugin-Token
user_header: X-User-Key
http:
method: PUT
url: https://{domain}/open_api/{project_key}/field/{work_item_type_key}
headers:
Content-Type: application/json
X-Plugin-Token: "{{resolved_token}}"
X-User-Key: "{{user_key}}"
path_params:
project_key:
type: string
required: true
description: >
Space ID (project_key) or space domain name (simple_name).
project_key: Double-click space name in Meegle. simple_name: from space URL (e.g. doc).
work_item_type_key:
type: string
required: true
description: Work item type. Obtain via Get work item types in space.
inputs:
field_key:
type: string
required: false
description: >
Unique identifier of the field from Get Field Information. For composite
fields: parent field_key allows only field_name, field_alias, help_description;
child field_key allows all attributes.
field_name:
type: string
required: false
description: Field name.
field_value:
type: array
required: false
description: >
Option updates. Each item: label, value (option id), action (0 add, 1 modify, 2 delete).
For sub-options include parent_value. Structure per Attributes and fields.
Mutually exclusive with team_option.
free_add:
type: integer
required: false
description: 1 = allow users to add options; 2 = No (default). For select/tree_select etc.
work_item_relation_uuid:
type: string
required: false
description: Work item relationship ID from Get Field Information. For work_item_related_select / work_item_related_multi_select.
default_value:
type: object
required: false
description: Default value; structure per field type. Not supported for attachment, signal, multi-value signal.
field_alias:
type: string
required: false
description: Field alias; cannot duplicate other fields of same work item type.
help_description:
type: string
required: false
description: Help instructions.
authorized_roles:
type: array
items: string
required: false
description: Role or system keys (e.g. _master, _owner, _role). Default "Anyone".
team_option:
type: object
required: false
description: Team scope per TeamOption. Only for tree_select, tree_multi_select. Mutually exclusive with field_value.
outputs:
data:
type: object
description: Empty on success (no data in response).
constraints:
- Permission: Permission Management – Configuration
- field_value and team_option cannot both be sent
error_mapping:
1000051468: Field alias repeated (replace field_alias)
1000051750: Field name has been used (replace field_name)
1000050746: Field type not supported
1000053603: Field name length exceeded (max 255 characters)
1000053604: Field description length exceeded (max 255 characters)
1000053605: Option count exceeded (up to {Number} options)
Usage notes
- field_key: Required to identify which field to update; from Get Field Information. For compound_field: use parent field_key to change only name/alias/help_description; use child field_key to update all attributes.
- field_value option actions: action 0 = add option, 1 = modify option, 2 = delete option. Include parent_value when adding or modifying sub-options (cascading).
- field_value vs team_option: Do not send both. Use field_value for option list changes; use team_option for team scope on tree_select / tree_multi_select.
- Default values are not supported for attachment, external system signal, or multi-value external system signal.
1---
2name: meegle-api-setting-field-settings
3description: |
4 Meegle OpenAPI for field settings: get, create, update custom fields.
5metadata:
6 source: https://skillmd.com/skills/modbender/meegle-api-setting-field-settings
7 openclaw: {}
8---
9
10# Meegle API — Setting (Field Settings)
11
12APIs under this skill: Get Field Information, Create Custom Field, Update Custom Field.
13
14---
15
16## Get Field Information
17
18Obtain the basic information of all fields under the specified space or, when **work_item_type_key** is provided, under that work item type. Response follows the SimpleField structure (field_key, field_type_key, options for select, compound_fields for compound_field). Permission: Permission Management – Configuration.
19
20### When to Use
21
22- When building field selectors or form UIs that need field keys, types, aliases, and scopes (work_item_scopes)
23- When you need option lists for select-type fields (label, value, order, is_disabled, etc.) or sub-fields for compound_field
24- When resolving field_key for Update Work Item Basic Information Settings (schedule_field_key, estimate_point_field_key, actual_work_time_field_key) or for work item read/write APIs
25
26### API Spec: get_field_information
27
28```yaml
29name: get_field_information
30type: api
31description: >
32 Obtain all fields under the space or under a work item type. Returns SimpleField
33 list: field_key, field_type_key, field_alias, field_name, is_custom_field,
34 work_item_scopes, value_generate_mode, relation_id; options for select; compound_fields for compound_field.
35
36auth:
37 type: plugin_access_token
38 header: X-Plugin-Token
39 user_header: X-User-Key
40
41http:
42 method: POST
43 url: https://{domain}/open_api/{project_key}/field/all
44 headers:
45 Content-Type: application/json
46 X-Plugin-Token: "{{resolved_token}}"
47 X-User-Key: "{{user_key}}"
48
49path_params:
50 project_key:
51 type: string
52 required: true
53 description: >
54 Space ID (project_key) or space domain name (simple_name).
55 project_key: Double-click space name in Meegle. simple_name: from space URL (e.g. doc).
56
57inputs:
58 work_item_type_key:
59 type: string
60 required: false
61 description: Work item type. Obtain via Get work item types in space. Omit to get all fields in space.
62
63outputs:
64 data:
65 type: array
66 description: >
67 List of SimpleField. Each has field_key, field_type_key, field_alias, field_name,
68 is_custom_field, work_item_scopes, value_generate_mode, relation_id. Select-type
69 fields include options (order, color, is_visibility, is_disabled, label, value,
70 work_item_type_key). compound_field type includes compound_fields (array of
71 field objects with field_key, field_type_key, field_name, etc.).
72
73constraints:
74 - Permission: Permission Management – Configuration
75
76error_mapping:
77 30001: Data not found (project_key does not match work_item_type_key; no such work item type in this space)
78```
79
80### Usage notes
81
82- **work_item_type_key**: Omit to return all fields in the space; set to a type (e.g. `story`, `chart`) to return only fields scoped to that type. If the type does not exist in the space, 30001 is returned.
83- **data** items: Use **field_key** when updating work item type settings (schedule_field_key, etc.) or when sending field values in work item APIs. **field_type_key** (e.g. `multi_text`, `select`, `compound_field`) determines value shape.
84- **options**: For **select** (and similar) fields; **value** is what to send in API payloads; **label** is display. **compound_fields**: For **compound_field** type; each sub-field has its own field_key and field_type_key.
85
86---
87
88## Create Custom Field
89
90Create a new custom field under the specified work item type. Returns the new **field_key**. Permission: Permission Management – Work Item Instances. For feature details, see Permission Management.
91
92### Points to note
93
94- Work item relationship field default data visibility is fixed; conditional data range cannot be modified.
95- Default values are not supported for attachment type or for external system signal / multi-value external system signal.
96- Modifying field validity (default valid) is not supported.
97- Updating work item type, creator, submission time, completion time, and business line fields is not supported.
98- Voting fields are not supported.
99
100### When to Use
101
102- When adding a new custom field (text, select, date, user, number, link, etc.) to a work item type
103- When reusing options from another field (value_type 1 + reference_work_item_type_key, reference_field_key) or defining custom options (field_value)
104- When configuring team_option for cascading single/multi-select (tree_select, tree_multi_select); mutually exclusive with field_value
105
106### API Spec: create_custom_field
107
108```yaml
109name: create_custom_field
110type: api
111description: >
112 Create a custom field under the specified work item type. Returns field_key.
113 Supports text, select, tree_select, date, user, number, link, multi_file, bool,
114 work_item_related_select, etc. field_value and team_option are mutually exclusive.
115
116auth:
117 type: plugin_access_token
118 header: X-Plugin-Token
119 user_header: X-User-Key
120
121http:
122 method: POST
123 url: https://{domain}/open_api/{project_key}/field/{work_item_type_key}/create
124 headers:
125 Content-Type: application/json
126 X-Plugin-Token: "{{resolved_token}}"
127 X-User-Key: "{{user_key}}"
128
129path_params:
130 project_key:
131 type: string
132 required: true
133 description: >
134 Space ID (project_key) or space domain name (simple_name).
135 project_key: Double-click space name in Meegle. simple_name: from space URL (e.g. doc).
136 work_item_type_key:
137 type: string
138 required: true
139 description: Work item type. Obtain via Get work item types in space.
140
141inputs:
142 field_name:
143 type: string
144 required: true
145 description: Field name; must not duplicate other fields.
146 field_alias:
147 type: string
148 required: false
149 description: Field alias; cannot duplicate other fields of the same work item type.
150 field_type_key:
151 type: string
152 required: true
153 description: >
154 Field type. See Attributes and fields. Supported: text, multi_text, select,
155 multi_select, tree_select, tree_multi_select, radio, user, multi_user, date,
156 schedule, link, number, multi_file, bool, signal, work_item_related_select,
157 work_item_related_multi_select.
158 value_type:
159 type: integer
160 required: false
161 description: >
162 Option source for select/multi_select/tree_select/tree_multi_select/radio.
163 0: Custom (default); 1: Reuse. When 1, reference_work_item_type_key and reference_field_key required.
164 field_value:
165 type: object
166 required: false
167 description: >
168 Option values; structure per Attributes and fields. For select, multi_select,
169 tree_select, tree_multi_select, radio. Mutually exclusive with team_option.
170 reference_work_item_type_key:
171 type: string
172 required: false
173 description: Required when value_type = 1.
174 reference_field_key:
175 type: string
176 required: false
177 description: Required when value_type = 1.
178 is_multi:
179 type: boolean
180 required: false
181 description: For text: true = multi-line; false = single-line (default).
182 format:
183 type: boolean
184 required: false
185 description: For date: true = date only; false = date + time (default).
186 free_add:
187 type: integer
188 required: false
189 description: For select/tree_select etc.: 1 = allow users to add options; 2 = No (default).
190 work_item_relation_uuid:
191 type: string
192 required: false
193 description: Work item relationship ID from Get field information. Required for work_item_related_select / work_item_related_multi_select.
194 default_value:
195 type: object
196 required: false
197 description: >
198 Default value; structure per field type (Attributes and fields). Not supported
199 for attachment, external system signal, multi-value external system signal.
200 help_description:
201 type: string
202 required: false
203 description: Help instructions.
204 authorized_roles:
205 type: array
206 items: string
207 required: false
208 description: >
209 Roles or system keys that can access/operate this field. Default "Anyone".
210 e.g. _master (Administrator), _owner (Creator), _role (Requirement-related person).
211 team_option:
212 type: object
213 required: false
214 description: >
215 Team scope per TeamOption. Only for tree_select, tree_multi_select.
216 Mutually exclusive with field_value.
217
218outputs:
219 data:
220 type: string
221 description: Created field key (e.g. field_73jds7).
222
223constraints:
224 - Permission: Permission Management – Work Item Instances
225 - field_value and team_option cannot both be sent
226
227error_mapping:
228 1000051468: Field alias repeated (field_alias duplicate)
229 1000051469: Invalid update version (field being concurrently updated)
230 1000051750: Field name has been used (field_name duplicate)
231 1000053603: Field name length exceeded (max characters for field name)
232```
233
234### Usage notes
235
236- **field_type_key**: Use supported API types (e.g. **text**, **select**, **date**, **user**, **number**, **link**, **multi_file**, **bool**, **work_item_related_select**, **work_item_related_multi_select**). See **Attributes and fields** and the field type support list in the product docs.
237- **field_value** vs **team_option**: Use **field_value** for custom/reused option values for select/tree_select etc.; use **team_option** only for cascading single/multi-select with team scope. Do not send both.
238- **value_type 1**: Set **reference_work_item_type_key** and **reference_field_key** to reuse options from another field.
239- **work_item_relation_uuid**: From Get Field Information (relation or work item relation fields). Required for **work_item_related_select** / **work_item_related_multi_select**.
240- Default values are not supported for attachment, external system signal, or multi-value external system signal fields.
241
242---
243
244## Update Custom Field
245
246Update the configuration of the specified custom field. Identify the field by **field_key** in the body. Permission: Permission Management – Configuration. For details, see Permission Management.
247
248### Points to note
249
250- Work item relationship field default data visibility is fixed; conditional data range cannot be modified.
251- Default values are not supported for attachment type or for external system signal / multi-value external system signal.
252- Modifying field validity (default valid) is not supported.
253- Updating work item type, creator, submission time, completion time, and business line fields is not supported.
254- Voting fields are not supported.
255- When modifying or adding sub-options (cascading options), **parent_value** is required.
256
257### When to Use
258
259- When changing field name, alias, help description, default value, authorized roles, or option list (field_value with action add/modify/delete)
260- When updating team scope (team_option) for cascading single/multi-select; mutually exclusive with field_value
261- When updating a composite field: pass parent field_key to change only field_name, field_alias, help_description; pass child field_key to update all attributes
262
263### API Spec: update_custom_field
264
265```yaml
266name: update_custom_field
267type: api
268description: >
269 Update configuration of the specified custom field. field_key in body identifies
270 the field. field_value supports option actions (add/modify/delete); parent_value
271 required for sub-options. field_value and team_option are mutually exclusive.
272
273auth:
274 type: plugin_access_token
275 header: X-Plugin-Token
276 user_header: X-User-Key
277
278http:
279 method: PUT
280 url: https://{domain}/open_api/{project_key}/field/{work_item_type_key}
281 headers:
282 Content-Type: application/json
283 X-Plugin-Token: "{{resolved_token}}"
284 X-User-Key: "{{user_key}}"
285
286path_params:
287 project_key:
288 type: string
289 required: true
290 description: >
291 Space ID (project_key) or space domain name (simple_name).
292 project_key: Double-click space name in Meegle. simple_name: from space URL (e.g. doc).
293 work_item_type_key:
294 type: string
295 required: true
296 description: Work item type. Obtain via Get work item types in space.
297
298inputs:
299 field_key:
300 type: string
301 required: false
302 description: >
303 Unique identifier of the field from Get Field Information. For composite
304 fields: parent field_key allows only field_name, field_alias, help_description;
305 child field_key allows all attributes.
306 field_name:
307 type: string
308 required: false
309 description: Field name.
310 field_value:
311 type: array
312 required: false
313 description: >
314 Option updates. Each item: label, value (option id), action (0 add, 1 modify, 2 delete).
315 For sub-options include parent_value. Structure per Attributes and fields.
316 Mutually exclusive with team_option.
317 free_add:
318 type: integer
319 required: false
320 description: 1 = allow users to add options; 2 = No (default). For select/tree_select etc.
321 work_item_relation_uuid:
322 type: string
323 required: false
324 description: Work item relationship ID from Get Field Information. For work_item_related_select / work_item_related_multi_select.
325 default_value:
326 type: object
327 required: false
328 description: Default value; structure per field type. Not supported for attachment, signal, multi-value signal.
329 field_alias:
330 type: string
331 required: false
332 description: Field alias; cannot duplicate other fields of same work item type.
333 help_description:
334 type: string
335 required: false
336 description: Help instructions.
337 authorized_roles:
338 type: array
339 items: string
340 required: false
341 description: Role or system keys (e.g. _master, _owner, _role). Default "Anyone".
342 team_option:
343 type: object
344 required: false
345 description: Team scope per TeamOption. Only for tree_select, tree_multi_select. Mutually exclusive with field_value.
346
347outputs:
348 data:
349 type: object
350 description: Empty on success (no data in response).
351
352constraints:
353 - Permission: Permission Management – Configuration
354 - field_value and team_option cannot both be sent
355
356error_mapping:
357 1000051468: Field alias repeated (replace field_alias)
358 1000051750: Field name has been used (replace field_name)
359 1000050746: Field type not supported
360 1000053603: Field name length exceeded (max 255 characters)
361 1000053604: Field description length exceeded (max 255 characters)
362 1000053605: Option count exceeded (up to {Number} options)
363```
364
365### Usage notes
366
367- **field_key**: Required to identify which field to update; from **Get Field Information**. For **compound_field**: use parent **field_key** to change only name/alias/help_description; use child **field_key** to update all attributes.
368- **field_value** option actions: **action** 0 = add option, 1 = modify option, 2 = delete option. Include **parent_value** when adding or modifying sub-options (cascading).
369- **field_value** vs **team_option**: Do not send both. Use **field_value** for option list changes; use **team_option** for team scope on tree_select / tree_multi_select.
370- Default values are not supported for attachment, external system signal, or multi-value external system signal.