WORK BREAKDOWN STRUCTURE (WBS), ATTRIBUTES, AND VALUES
Work Breakdown Structure
Table 1. Work Breakdown Structure Data Model
| Field | Type | Description |
|---|---|---|
| id | UUID v4 | Unique WBS identifier |
| parentId | UUID v4 | Unique parent node identifier |
| code | string | Activity identifier |
| type | string | Node type |
| level | integer | Node nesting level |
| indexNumber | integer | Node index number |
| sortOrder | integer | Node sort order |
| values | number | WBS attribute identifier with its value |
| criticalPath | boolean | Node critical path identifier |
| materialPath | string[] | Array of parent activity identifiers. |
| curatorAccepted | boolean | Curator acceptance flag for the node |
Table 2. WBS Record Types
| Type | Description |
|---|---|
| work | WBS node — a structural element (summary task) that can contain child elements (activities, milestones, drafts, and WBS nodes) and defines the schedule hierarchy and structure. Its start, finish, calendar duration, and progress are determined by the status, duration, and execution sequence of its child elements. |
| task | Activity — a task (operation) performed over a specific period, with work duration, calendar duration, start, and finish as required attributes. Activity progress ranges from 0 to 100. Possible statuses are "Not started", "In progress", and "Completed". |
| milestone_start | Start milestone — a task (operation) with a required start attribute and no finish value, work duration, or calendar duration. It represents an event preceding subsequent activities or stages. Start milestone progress can be 0 or 100. Possible statuses are "Not started" and "Completed". |
| milestone_finish | Finish milestone — a task (operation) with a required finish attribute and no start value, work duration, or calendar duration. It represents an event completing preceding activities or stages. Finish milestone progress can be 0 or 100. Possible statuses are "Not started" and "Completed". |
| draft | Draft — a task (operation) with no start or finish values. Work duration and calendar duration may be specified or left empty for this type. A draft represents an activity whose execution dates have not yet been determined. Its progress can only be 0, and its only possible status is "Not started". |
| sum | Summary activity — an activity type used to combine multiple activities within one or more schedules. A summary task can represent a level 2 schedule, simplify activity management, or aggregate data. |
Usage Examples
Example: Retrieve the list of activities in a schedule version.
Attention! The epsId parameter is required to retrieve the WBS. It specifies the identifier of the schedule in the Enterprise Project Structure (EPS) for which data is requested.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs?epsId=bc1da5df-d644-461a-aa54-e60182195898' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 509' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Example: Retrieve the values of the specified attributes for the activity with code A110.
Attention! Do not use attributeIds and select together.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs?epsId=bc1da5df-d644-461a-aa54-e60182195898 & \
attributesIds=513200c8-6f15-4628-8d6e-2768e14f2add & \
attributesIds=173be1d3-0afc-4156-8552-662a072b9980 & filter=code eq 'A110'' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Example: Create a new activity in a schedule version.
curl -X 'POST' \
'https://your-org.domain/public-api/wbs' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
-d '{
"epsId": "bc1da5df-d644-461a-aa54-e60182195898",
"parentId": "2b73a1f8-833f-488c-9947-7fc1a4b76314",
"type": "task",
"name": "Concrete Placement",
"values": {
"eb3606f5-679c-4e4d-b9d1-072d5b988cfa": 27,
"481863c5-bd1d-44ac-b968-5ee5df7ea861": "Value of WBS attribute"
}
}'
javascript;
const epsPath = 'https://your-org.domain/public-api/wbs';
const baseHeaders = {
Authorization: 'your-api-key',
'x-tenant-id': '5db13376-ba5c-4fd5-ba7f-dc56347956ad',
'x-version': '409',
accept: 'application/json',
'Content-Type': 'application/json',
};
// To create an activity (type task) at the root of the structure, set its parentId to the EPS node identifier (epsId).
// To nest an activity (type task) in a WBS node (type work), first retrieve the WBS list through
// the WBS-GET endpoint, copy the WBS node identifier, and use it as parentId.
/// To set attributes and their values for the new activity,
/// retrieve the available activity attributes for the schedule version using WbsAttributes-GET,
/// then add the required attribute and its value to values.
/// For an attribute of type string: "Yellow"
/// For an attribute of type date: a date in standard EPOCH timestamp format, in milliseconds (13 digits)
/// For an attribute of type number: a number
const wbsCreateBody = {
epsId: '3cdd4b5d-f830-443e-9c49-2d4c6a356a85',
parentId: '50b44ff5-5b60-489b-acb8-5cf4bde12382',
code: 'My new code',
type: 'task',
name: 'My WBS name',
values: {
'f76dad04-ab3a-4340-b80d-071cba968b60': 'Yellow',
'19c27ceb-8302-4a2c-8bf9-2f34c1aca508': 1728982800000,
'41054337-76cd-4393-99d0-ff90b5c79508': 16,
},
};
fetch(epsPath, { headers: baseHeaders, method: 'POST', body: JSON.stringify(wbsCreateBody) })
.then((response) => {
if (response.ok) {
return response.json();
} else {
throw new Error(`Error: ${response.status}, ${response.statusText}`);
}
})
.then((wbs) => {
console.log(wbs);
})
.catch((error) => {
console.error(error.message);
});
Example: Modify an existing activity.
curl -X 'PUT' \
'https://your-org.domain/public-api/wbs/be69f9e6-5e81-4aec-959f-516bceb6e8b8' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 509' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
-d '{
"code":"Code001",
"name": "Concrete Placement"
"type":"milestone_start",
"parentId":"77b4a87b-21bf-40d7-bdf6-aad8c77d506e",
"values": {
"eb3606f5-679c-4e4d-b9d1-072d5b988cfa": "walls",
"481863c5-bd1d-44ac-b968-5ee5df7ea861": null
}
}'
Example: Delete a record from a schedule version.
curl -X 'DELETE' \
'https://your-org.domain/public-api/wbs/be69f9e6-5e81-4aec-959f-516bceb6e8b8' \
-H 'accept: */*' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
A custom function is also available for finding a WBS value by attribute identifier.
getById(values, 'WBS attribute identifier')
Example: Check that the WBS has an attribute with identifier 624b6a37-f6a0-40a5-a2e1-4f2e6724167b and that this attribute's value for the WBS equals Hotel building.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs?epsId=70d6cb44-00e9-4535-9949-2d5596f0988a&filter=getById(values, '624b6a37-f6a0-40a5-a2e1-4f2e6724167b') eq 'Hotel building'' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 507' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Example: The number('String') and boolean('String') functions return numeric and Boolean values, respectively.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs?epsId=70d6cb44-00e9-4535-9949-2d5596f0988a&filter=number(getById(values, 'be69f9e6-5e81-4aec-959f-516bceb6e8b8')) gt 15' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 507' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Attributes
Table 3. Work Breakdown Structure Attribute Data Model
| Field | Type | Description |
|---|---|---|
| id | UUID v4 | Unique attribute identifier |
| epsId | UUID v4 | EPS node identifier |
| label | string | Attribute title |
| key | string | Unique string code of the attribute |
| type | string | Attribute type |
| directoryId | UUID v4 | Directory identifier |
| directoryAttributeId | UUID v4 | Attribute identifier in the directory |
Table 4. WBS Attribute Types
| Type | Description |
|---|---|
| date | Date in timestamp format |
| number | Floating-point number |
| string | String |
| money | Floating-point number |
| boolean | Boolean represented as 1 or 0 |
| percentage | Percentage |
| indicator | Indicator |
| through | Write-through |
Usage Examples
Example: Retrieve the list of activity attributes for the specified EPS node and its ancestors.
Attention! The epsId parameter is required to retrieve attributes. It specifies the identifier of the Enterprise Project Structure (EPS) node for which data is requested. Attributes are searched starting at the specified EPS node and continuing through all its parent nodes.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs-attributes?epsId=5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'
Example: Retrieve the list of activity attributes for the specified EPS node only.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs-attributes?epsId=5db13376-ba5c-4fd5-ba7f-dc56347956ad&filter=epsId eq '5db13376-ba5c-4fd5-ba7f-dc56347956ad'' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'
Example: Retrieve the list of activity attributes of type date for the specified EPS node using OData.
curl -X 'GET' \
''https://your-org.domain/public-api/wbs-attributes?epsId=5db13376-ba5c-4fd5-ba7f-dc56347956ad&filter=type eq 'date''' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'
Example: Create a new attribute.
curl -X 'POST' \
'https://your-org.domain/public-api/wbs-attributes' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
-d '{
"epsId": "5db13376-ba5c-4fd5-ba7f-dc56347956ad",
"label": "Documentation Release Date",
"type": "date",
}'
Example: Rename an existing attribute.
curl -X 'PUT' \
'https://your-org.domain/public-api/wbs-attributes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
-d '{
"label": "Documentation Release Date",
}'
Example: Delete an existing user-defined attribute.
curl -X 'DELETE' \
'https://your-org.domain/public-api/wbs-attributes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
-H 'accept: */*' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Links
Table 5. Work Breakdown Structure Link Data Model
| Field | Type | Description |
|---|---|---|
| id | UUID v4 | Unique link identifier |
| versionId | UUID v4 | Schedule version identifier |
| wbsId | UUID v4 | WBS node identifier |
| linkedWbsId | UUID v4 | Identifier of the WBS node to which the link is established |
| type | string | Link type |
| lag | Number | Lag between activities, in hours |
Table 6. Link Types
| Type | Description |
|---|---|
| fs | Finish-to-Start — the successor activity starts after the predecessor activity finishes |
| ss | Start-to-Start — the successor activity starts at the same time as the predecessor activity |
| ff | Finish-to-Finish — the successor activity finishes at the same time as the predecessor activity |
| sf | Start-to-Finish — the successor activity finishes before the predecessor activity starts |
Usage Examples
Example: Retrieve the list of links for a WBS node by its identifier.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs-relations/5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 503' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'
Example: Retrieve the list of WBS node links of type fs for the specified schedule version.
curl -X 'GET' \
'https://your-org.domain/public-api/wbs-relations?filter=type eq 'fs' and versionId=1a986208-0500-43e4-a4cf-66611ca3fea5' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'
Example: Create a new link between WBS nodes.
curl -X 'POST' \
'https://your-org.domain/public-api/wbs-relations' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 503' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
-d '{
"versionId": "5db13376-ba5c-4fd5-ba7f-dc56347956ad",
"wbsId": "8276566e-0ec8-496f-ae18-7183e43ebd6d",
"linkedWbsId": "bdb66e70-0231-411f-a3de-68c8fc341676",
"type": "fs",
"lag": 0
}'
Example: Modify the parameters of a link between WBS nodes.
curl -X 'PUT' \
'https://your-org.domain/public-api/wbs-relations/36b60d7c-fba9-4fb6-8d5a-a054f2043827' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 503' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
-H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
-d '{
"type": "ff",
"lag": 25
}'
Example: Delete a link between WBS nodes.
curl -X 'DELETE' \
'https://your-org.domain/public-api/wbs-relations/36b60d7c-fba9-4fb6-8d5a-a054f2043827' \
-H 'accept: */*' \
-H 'x-version: 503' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'