Meegle API — Setting (Space Setting)
APIs under this skill: Get Work Item Types in Space, Get Business Line Details in Space.
Get Work Item Types in Space
Obtain the list of all work item types in the space and their docking identifiers (work_item_type_key / api_name) for use in subsequent APIs. Permission: Permission Management > Configuration Categories.
When to Use
- When you need work_item_type_key or api_name for other interfaces (work item CRUD, workflow, lists, etc.)
- When building space configuration UIs or listing available work item types (story, issue, version, sprint, chart, sub_task, etc.)
- When checking is_disable or enable_model_resource_lib per type
API Spec: get_work_item_types_in_space
name: get_work_item_types_in_space
type: api
description: >
Obtain all work item types in the space (WorkItemKeyType). Returns type_key, name,
api_name, is_disable, enable_model_resource_lib for each type.
auth:
type: plugin_access_token
header: X-Plugin-Token
user_header: X-User-Key
http:
method: GET
url: https://{domain}/open_api/{project_key}/work_item/all-types
headers:
X-Plugin-Token: "{{resolved_token}}"
X-User-Key: "{{user_key}}"
path_params:
project_key:
type: string
required: true
description: >
Space unique identifier (project_key). Double-click space name in Meegle project space to obtain.
outputs:
data:
type: array
description: >
List of work item types per WorkItemKeyType: type_key, name, is_disable,
api_name, enable_model_resource_lib. type_key / api_name are used as work_item_type_key in other APIs.
constraints:
- Permission: Permission Management – Configuration Categories
error_mapping:
10023: User not exist (X-User-Key in header incorrect or user not found)
Usage notes
- type_key and api_name: Use as work_item_type_key in work item, workflow, list, and other APIs (e.g.
story, issue, version, sub_task).
- is_disable: Indicates whether the type is disabled (value meaning per product; typically 2 = enabled).
- enable_model_resource_lib: Whether the type supports model resource library.
- X-User-Key: Must be a valid user key; invalid or missing key returns 10023.
Get Business Line Details in Space
Obtain the business line information of the space. Response follows the Business structure (tree with id, name, role_owners, watchers, level_id, parent, children, etc.). For the platform feature, see Business Line Configuration. Permission: Permission Management – Configuration.
When to Use
- When building business-line UIs or selectors that need the full business line tree for the space
- When you need role_owners, watchers, super_masters, or hierarchy (parent, children, level_id) per business line
- When validating or displaying business line IDs (id) for work items or filters
API Spec: get_business_line_details_in_space
name: get_business_line_details_in_space
type: api
description: >
Obtain business line information of the space. Returns list of Business objects
(tree: id, name, role_owners, watchers, level_id, parent, children, disabled, labels, order, project, super_masters).
auth:
type: plugin_access_token
header: X-Plugin-Token
user_header: X-User-Key
http:
method: GET
url: https://{domain}/open_api/{project_key}/business/all
headers:
X-Plugin-Token: "{{resolved_token}}"
X-User-Key: "{{user_key}}"
path_params:
project_key:
type: string
required: true
description: >
Space unique identifier (project_key). Double-click space name in Meegle project space to obtain.
outputs:
data:
type: array
description: >
List of Business objects. Each has id, name, role_owners (role, owners, name),
watchers, level_id, parent, disabled, labels, order, project, super_masters,
children (nested Business objects with same structure).
constraints:
- Permission: Permission Management – Configuration
error_mapping:
1000052062: Project key is wrong (not found simple name; project_key incorrect)
Usage notes
- data: Root-level array may represent top-level business lines; each item can have children forming a tree. parent links to parent id; level_id indicates depth.
- role_owners: Can be array of
{ role, owners } or object keyed by role (e.g. role_test: { name, owners, role }); owners are user_key lists.
- watchers / super_masters: user_key arrays. project is the space/project identifier.
- For business line configuration in the product, refer to Business Line Configuration in the platform docs.
1---
2name: meegle-api-setting-space-setting
3description: |
4 Meegle OpenAPI for space-level setting: work item types, business lines.
5metadata:
6 source: https://skillmd.com/skills/modbender/meegle-api-setting-space-setting
7 openclaw: {}
8---
9
10# Meegle API — Setting (Space Setting)
11
12APIs under this skill: Get Work Item Types in Space, Get Business Line Details in Space.
13
14---
15
16## Get Work Item Types in Space
17
18Obtain the list of all work item types in the space and their docking identifiers (**work_item_type_key** / **api_name**) for use in subsequent APIs. Permission: Permission Management > Configuration Categories.
19
20### When to Use
21
22- When you need **work_item_type_key** or **api_name** for other interfaces (work item CRUD, workflow, lists, etc.)
23- When building space configuration UIs or listing available work item types (story, issue, version, sprint, chart, sub_task, etc.)
24- When checking **is_disable** or **enable_model_resource_lib** per type
25
26### API Spec: get_work_item_types_in_space
27
28```yaml
29name: get_work_item_types_in_space
30type: api
31description: >
32 Obtain all work item types in the space (WorkItemKeyType). Returns type_key, name,
33 api_name, is_disable, enable_model_resource_lib for each type.
34
35auth:
36 type: plugin_access_token
37 header: X-Plugin-Token
38 user_header: X-User-Key
39
40http:
41 method: GET
42 url: https://{domain}/open_api/{project_key}/work_item/all-types
43 headers:
44 X-Plugin-Token: "{{resolved_token}}"
45 X-User-Key: "{{user_key}}"
46
47path_params:
48 project_key:
49 type: string
50 required: true
51 description: >
52 Space unique identifier (project_key). Double-click space name in Meegle project space to obtain.
53
54outputs:
55 data:
56 type: array
57 description: >
58 List of work item types per WorkItemKeyType: type_key, name, is_disable,
59 api_name, enable_model_resource_lib. type_key / api_name are used as work_item_type_key in other APIs.
60
61constraints:
62 - Permission: Permission Management – Configuration Categories
63
64error_mapping:
65 10023: User not exist (X-User-Key in header incorrect or user not found)
66```
67
68### Usage notes
69
70- **type_key** and **api_name**: Use as **work_item_type_key** in work item, workflow, list, and other APIs (e.g. `story`, `issue`, `version`, `sub_task`).
71- **is_disable**: Indicates whether the type is disabled (value meaning per product; typically 2 = enabled).
72- **enable_model_resource_lib**: Whether the type supports model resource library.
73- **X-User-Key**: Must be a valid user key; invalid or missing key returns 10023.
74
75---
76
77## Get Business Line Details in Space
78
79Obtain the business line information of the space. Response follows the Business structure (tree with id, name, role_owners, watchers, level_id, parent, children, etc.). For the platform feature, see Business Line Configuration. Permission: Permission Management – Configuration.
80
81### When to Use
82
83- When building business-line UIs or selectors that need the full business line tree for the space
84- When you need role_owners, watchers, super_masters, or hierarchy (parent, children, level_id) per business line
85- When validating or displaying business line IDs (id) for work items or filters
86
87### API Spec: get_business_line_details_in_space
88
89```yaml
90name: get_business_line_details_in_space
91type: api
92description: >
93 Obtain business line information of the space. Returns list of Business objects
94 (tree: id, name, role_owners, watchers, level_id, parent, children, disabled, labels, order, project, super_masters).
95
96auth:
97 type: plugin_access_token
98 header: X-Plugin-Token
99 user_header: X-User-Key
100
101http:
102 method: GET
103 url: https://{domain}/open_api/{project_key}/business/all
104 headers:
105 X-Plugin-Token: "{{resolved_token}}"
106 X-User-Key: "{{user_key}}"
107
108path_params:
109 project_key:
110 type: string
111 required: true
112 description: >
113 Space unique identifier (project_key). Double-click space name in Meegle project space to obtain.
114
115outputs:
116 data:
117 type: array
118 description: >
119 List of Business objects. Each has id, name, role_owners (role, owners, name),
120 watchers, level_id, parent, disabled, labels, order, project, super_masters,
121 children (nested Business objects with same structure).
122
123constraints:
124 - Permission: Permission Management – Configuration
125
126error_mapping:
127 1000052062: Project key is wrong (not found simple name; project_key incorrect)
128```
129
130### Usage notes
131
132- **data**: Root-level array may represent top-level business lines; each item can have **children** forming a tree. **parent** links to parent id; **level_id** indicates depth.
133- **role_owners**: Can be array of `{ role, owners }` or object keyed by role (e.g. `role_test: { name, owners, role }`); **owners** are user_key lists.
134- **watchers** / **super_masters**: user_key arrays. **project** is the space/project identifier.
135- For business line configuration in the product, refer to **Business Line Configuration** in the platform docs.