Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Incorporated review feedback from Kharonus.

Gunter Ohrnerd2305c08d618
diff --git a/docs/api/apiv3/components/schemas/work_package_model.yml b/docs/api/apiv3/components/schemas/work_package_model.yml
index 6ed00b941ba..8a2c6b1b517 100644
--- a/docs/api/apiv3/components/schemas/work_package_model.yml
+++ b/docs/api/apiv3/components/schemas/work_package_model.yml
@@ -148,8 +148,10 @@ properties:
items:
allOf:
- "$ref": "./link.yml"
- - description: Collection of predefined changes that can be applied to the
- work package
+ - description: |-
+ A predefined action that can be applied to the work package.
+
+ **Resource**: CustomAction
readOnly: true
previewMarkup:
allOf:
@@ -230,23 +232,21 @@ properties:
allOf:
- "$ref": "./link.yml"
- description: |-
- Array of all visible ancestors of the work package, with the root node being the first element
+ A visible ancestor work package of the current work package.
- **Resource**: Collection
+ **Resource**: WorkPackage
# Conditions
**Permission** view work packages
readOnly: true
attachments:
- type: array
- items:
- allOf:
- - "$ref": "./link.yml"
- - description: |-
- The files attached to this work package
-
- **Resource**: Collection
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ The files attached to this work package
+
+ **Resource**: Collection
author:
allOf:
- "$ref": "./link.yml"
@@ -299,9 +299,9 @@ properties:
allOf:
- "$ref": "./link.yml"
- description: |-
- Array of all visible children of the work package
+ A visible child work package of the current work package.
- **Resource**: Collection
+ **Resource**: WorkPackage
# Conditions
@@ -393,20 +393,17 @@ properties:
**Resource**: Version
watchers:
- type: array
- readOnly: true
- items:
- allOf:
- - "$ref": "./link.yml"
- - description: |-
- All users that are currently watching this work package
-
- **Resource**: Collection
-
- # Conditions
-
- **Permission** view work package watchers
- readOnly: true
+ allOf:
+ - "$ref": "./link.yml"
+ - description: |-
+ All users that are currently watching this work package
+
+ **Resource**: Collection
+
+ # Conditions
+
+ **Permission** view work package watchers
+ readOnly: true
example:
_type: WorkPackage
_links:
diff --git a/docs/api/apiv3/paths/work_package.yml b/docs/api/apiv3/paths/work_package.yml
index dc251e08e1f..d8cfbcbf87b 100644
--- a/docs/api/apiv3/paths/work_package.yml
+++ b/docs/api/apiv3/paths/work_package.yml
@@ -485,10 +485,4 @@ patch:
application/json:
schema:
"$ref": "../components/schemas/work_package_model.yml"
- example:
- _links:
- parent:
- href: "/api/v3/work_packages/42"
- lockVersion: 13
- subject: Lorem
summary: Edit Work Package
diff --git a/docs/api/apiv3/paths/work_package_activities.yml b/docs/api/apiv3/paths/work_package_activities.yml
index 17707a3288b..fbce3f3b6a2 100644
--- a/docs/api/apiv3/paths/work_package_activities.yml
+++ b/docs/api/apiv3/paths/work_package_activities.yml
@@ -57,14 +57,7 @@ get:
count: 2
total: 2
schema:
- type: object
- properties:
- _embedded:
- type: object
- properties:
- elements:
- type: object
- "$ref": "../components/schemas/work_package_activities_model.yml"
+ "$ref": "../components/schemas/work_package_activities_model.yml"
description: OK
headers: {}
'404':
diff --git a/docs/api/apiv3/paths/work_packages.yml b/docs/api/apiv3/paths/work_packages.yml
index ad44e5b383e..9830075698c 100644
--- a/docs/api/apiv3/paths/work_packages.yml
+++ b/docs/api/apiv3/paths/work_packages.yml
@@ -436,17 +436,4 @@ post:
application/json:
schema:
"$ref": "../components/schemas/work_package_model.yml"
- example:
- _links:
- assignee:
- href: "/api/v3/users/8"
- customField32:
- href: "/api/v3/users/3"
- project:
- href: "/api/v3/project/42"
- type:
- href: "/api/v3/type/123"
- customField41: 8
- startDate: '2048-01-03'
- subject: Lorem
summary: Create Work Package