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

describe versions sortBy parameter

Ivan Kuchin8b886405b346
diff --git a/docs/api/apiv3/paths/versions.yml b/docs/api/apiv3/paths/versions.yml
index 8c509fb6ab5..e69e05a9acc 100644
--- a/docs/api/apiv3/paths/versions.yml
+++ b/docs/api/apiv3/paths/versions.yml
@@ -14,6 +14,19 @@ get:
required: false
schema:
type: string
+ - description: |-
+ JSON specifying sort criteria.
+ Accepts the same format as returned by the [queries](https://www.openproject.org/docs/api/endpoints/queries/) endpoint. Currently supported attributes are:
+
+ + id: Sort by the version id
+ + name: Sort by the version name using numeric collation, comparing sequences of decimal digits by their numeric value
+ + semver_name: Deprecated, use name instead
+ example: '[["name", "desc"]]'
+ in: query
+ name: sortBy
+ required: false
+ schema:
+ type: string
responses:
'200':
content: