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

Merge branch 'dev' into api_spec_fixes_1

Gunter Ohrner397331ed4c4a
diff --cc docs/api/apiv3/components/schemas/work_package_model.yml
index 1682e894b35,e2be36c4e62..6ed00b941ba
--- a/docs/api/apiv3/components/schemas/work_package_model.yml
+++ b/docs/api/apiv3/components/schemas/work_package_model.yml
@@@ -104,130 -104,124 +104,130 @@@ properties
properties:
addAttachment:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Attach a file to the WP
-
- # Conditions
-
- **Permission**: edit work package
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Attach a file to the WP
+
+ # Conditions
+
+ **Permission**: edit work package
+ readOnly: true
addComment:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Post comment to WP
-
- # Conditions
-
- **Permission**: add work package notes
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Post comment to WP
+
+ # Conditions
+
+ **Permission**: add work package notes
+ readOnly: true
addRelation:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Adds a relation to this work package.
-
- # Conditions
-
- **Permission**: manage wp relations
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Adds a relation to this work package.
+
+ # Conditions
+
+ **Permission**: manage wp relations
+ readOnly: true
addWatcher:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Add any user to WP watchers
-
- # Conditions
-
- **Permission**: add watcher
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Add any user to WP watchers
+
+ # Conditions
+
+ **Permission**: add watcher
+ readOnly: true
customActions:
- allOf:
+ type: array
+ readOnly: true
+ items:
+ allOf:
- "$ref": "./link.yml"
- description: Collection of predefined changes that can be applied to the
work package
readOnly: true
previewMarkup:
allOf:
- - "$ref": "./link.yml"
- - description: Post markup (in markdown) here to receive an HTML-rendered
- response
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: Post markup (in markdown) here to receive an HTML-rendered
+ response
+ readOnly: true
removeWatcher:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Remove any user from WP watchers
-
- # Conditions
-
- **Permission**: delete watcher
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Remove any user from WP watchers
+
+ # Conditions
+
+ **Permission**: delete watcher
+ readOnly: true
unwatch:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Remove current user from WP watchers
-
- # Conditions
-
- logged in; watching
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Remove current user from WP watchers
+
+ # Conditions
+
+ logged in; watching
+ readOnly: true
update:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Form endpoint that aids in preparing and performing edits on a WP
-
- # Conditions
-
- **Permission**: edit work package
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Form endpoint that aids in preparing and performing edits on a WP
+
+ # Conditions
+
+ **Permission**: edit work package
+ readOnly: true
updateImmediately:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Directly perform edits on a work package
-
- # Conditions
-
- **Permission**: edit work package
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Directly perform edits on a work package
+
+ # Conditions
+
+ **Permission**: edit work package
+ readOnly: true
watch:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Add current user to WP watchers
-
- # Conditions
-
- logged in; not watching
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Add current user to WP watchers
+
+ # Conditions
+
+ logged in; not watching
+ readOnly: true
self:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- This work package
-
- **Resource**: WorkPackage
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ This work package
+
+ **Resource**: WorkPackage
+ readOnly: true
schema:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The schema of this work package
-
- **Resource**: Schema
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ The schema of this work package
+
+ **Resource**: Schema
+ readOnly: true
ancestors:
- allOf:
+ type: array
+ readOnly: true
+ items:
+ allOf:
- "$ref": "./link.yml"
- description: |-
Array of all visible ancestors of the work package, with the root node being the first element
@@@ -249,54 -241,51 +249,54 @@@
**Resource**: Collection
author:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The person that created the work package
-
- **Resource**: User
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ The person that created the work package
+
+ **Resource**: User
+ readOnly: true
assignee:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The person that is intended to work on the work package
-
- **Resource**: User
+ - "$ref": "./link.yml"
+ - description: |-
+ The person that is intended to work on the work package
+
+ **Resource**: User
availableWatchers:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- All users that can be added to the work package as watchers.
-
- **Resource**: User
-
- # Conditions
-
- **Permission** add work package watchers
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ All users that can be added to the work package as watchers.
+
+ **Resource**: User
+
+ # Conditions
+
+ **Permission** add work package watchers
+ readOnly: true
budget:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The budget this work package is associated to
-
- **Resource**: Budget
-
- # Conditions
-
- **Permission** view cost objects
+ - "$ref": "./link.yml"
+ - description: |-
+ The budget this work package is associated to
+
+ **Resource**: Budget
+
+ # Conditions
+
+ **Permission** view cost objects
category:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The category of the work package
-
- **Resource**: Category
+ - "$ref": "./link.yml"
+ - description: |-
+ The category of the work package
+
+ **Resource**: Category
children:
- allOf:
+ type: array
+ readOnly: true
+ items:
+ allOf:
- "$ref": "./link.yml"
- description: |-
Array of all visible children of the work package
@@@ -309,94 -298,91 +309,94 @@@
readOnly: true
parent:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Parent work package
-
- **Resource**: WorkPackage
+ - "$ref": "./link.yml"
+ - description: |-
+ Parent work package
+
+ **Resource**: WorkPackage
priority:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The priority of the work package
-
- **Resource**: Priority
+ - "$ref": "./link.yml"
+ - description: |-
+ The priority of the work package
+
+ **Resource**: Priority
project:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The project to which the work package belongs
-
- **Resource**: Project
+ - "$ref": "./link.yml"
+ - description: |-
+ The project to which the work package belongs
+
+ **Resource**: Project
responsible:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The person that is responsible for the overall outcome
-
- **Resource**: User
+ - "$ref": "./link.yml"
+ - description: |-
+ The person that is responsible for the overall outcome
+
+ **Resource**: User
relations:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Relations this work package is involved in
-
- **Resource**: Relation
-
- # Conditions
-
- **Permission** view work packages
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Relations this work package is involved in
+
+ **Resource**: Relation
+
+ # Conditions
+
+ **Permission** view work packages
+ readOnly: true
revisions:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- Revisions that are referencing the work package
-
- **Resource**: Revision
-
- # Conditions
-
- **Permission** view changesets
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ Revisions that are referencing the work package
+
+ **Resource**: Revision
+
+ # Conditions
+
+ **Permission** view changesets
+ readOnly: true
status:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The current status of the work package
-
- **Resource**: Status
+ - "$ref": "./link.yml"
+ - description: |-
+ The current status of the work package
+
+ **Resource**: Status
timeEntries:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- All time entries logged on the work package. Please note that this is a link to an HTML resource for now and as such, the link is subject to change.
-
- **Resource**: N/A
-
- # Conditions
-
- **Permission** view time entries
- readOnly: true
+ - "$ref": "./link.yml"
+ - description: |-
+ All time entries logged on the work package. Please note that this is a link to an HTML resource for now and as such, the link is subject to change.
+
+ **Resource**: N/A
+
+ # Conditions
+
+ **Permission** view time entries
+ readOnly: true
type:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The type of the work package
-
- **Resource**: Type
+ - "$ref": "./link.yml"
+ - description: |-
+ The type of the work package
+
+ **Resource**: Type
version:
allOf:
- - "$ref": "./link.yml"
- - description: |-
- The version associated to the work package
-
- **Resource**: Version
+ - "$ref": "./link.yml"
+ - description: |-
+ The version associated to the work package
+
+ **Resource**: Version
watchers:
- allOf:
+ type: array
+ readOnly: true
+ items:
+ allOf:
- "$ref": "./link.yml"
- description: |-
All users that are currently watching this work package