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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update Query docs with timestamp examples
Dombi Attilad29e8e6fe922
diff --git a/docs/api/apiv3/components/examples/query.yml b/docs/api/apiv3/components/examples/query.ymlindex 1af325be060..a4bfb2eee4b 100644--- a/docs/api/apiv3/components/examples/query.yml+++ b/docs/api/apiv3/components/examples/query.yml@@ -36,6 +36,7 @@ value:sums: falsestarred: falsehidden: false+ timestamps: ["PT0S"]projections:- _type: QueryProjection::TableshowHierarchies: truediff --git a/docs/api/apiv3/components/examples/query_schema.yml b/docs/api/apiv3/components/examples/query_schema.ymlindex f0485074162..e6f2b1f6877 100644--- a/docs/api/apiv3/components/examples/query_schema.yml+++ b/docs/api/apiv3/components/examples/query_schema.yml@@ -225,6 +225,12 @@ value:type: Stringwritable: truedeprecated: true+ timestamps:+ hasDefault: true+ name: Timestamps+ required: false+ type: "[]Timestamp"+ writable: trueupdatedAt:hasDefault: falsename: Updated ondiff --git a/docs/api/apiv3/components/schemas/default_query_model.yml b/docs/api/apiv3/components/schemas/default_query_model.ymlindex 762d950d732..201337fc13a 100644--- a/docs/api/apiv3/components/schemas/default_query_model.yml+++ b/docs/api/apiv3/components/schemas/default_query_model.yml@@ -23,6 +23,7 @@ example:timelineZoomLevel: daystimelineLabels: {}highlightingMode: inline+ timestamps: ["P0D"]showHierarchies: truestarred: false_embedded:diff --git a/docs/api/apiv3/components/schemas/query_model.yml b/docs/api/apiv3/components/schemas/query_model.ymlindex d35b97408c4..3d8afc652da 100644--- a/docs/api/apiv3/components/schemas/query_model.yml+++ b/docs/api/apiv3/components/schemas/query_model.yml@@ -43,6 +43,11 @@ properties:description: Which zoom level should the timeline be rendered in?readOnly: truedeprecated: true+ timestamps:+ type: array+ description: Timestamps to filter by when showing changed attributes+ on work packages.+ readOnly: falsehighlightingMode:type: stringdescription: Which highlighting mode should the table have?diff --git a/docs/api/apiv3/components/schemas/schema_for_global_queries_model.yml b/docs/api/apiv3/components/schemas/schema_for_global_queries_model.ymlindex 07690aaadbd..f45134b4c36 100644--- a/docs/api/apiv3/components/schemas/schema_for_global_queries_model.yml+++ b/docs/api/apiv3/components/schemas/schema_for_global_queries_model.yml@@ -77,6 +77,12 @@ example:hasDefault: truewritable: truedeprecated: true+ timestamps:+ type: "[]Timestamp"+ name: Timestamps+ required: false+ hasDefault: true+ writable: truehighlightingMode:type: Stringname: Highlighting modediff --git a/docs/api/apiv3/tags/basic_objects.yml b/docs/api/apiv3/tags/basic_objects.ymlindex 5d8f371b209..70d729ca0ff 100644--- a/docs/api/apiv3/tags/basic_objects.yml+++ b/docs/api/apiv3/tags/basic_objects.yml@@ -224,7 +224,7 @@ description: |-}```- ## Dates, Times and Durations+ ## Dates, Times, Durations and TimestampsRepresentation of time related values in this API is done according to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601).In this specification the following terms will be used as type specifiers (e.g. in tables):@@ -235,7 +235,8 @@ description: |-* `Duration` - refers to an ISO 8601 duration, e.g. "P1DT18H"- * `Timestamp` - refers to an ISO 8601 combined date and time, e.g. "2014-05-21T13:37:00Z" or to an ISO 8601 duration, e.g. "P1DT18H"+ * `Timestamp` - refers to an ISO 8601 combined date and time, e.g. "2014-05-21T13:37:00Z" or to an ISO 8601 duration, e.g. "P1DT18H".+ The following shorthand values are also being parsed as duration: "1d", "1w", "1m", "1y", "1y-2m", "-2y".## Colorsdiff --git a/docs/api/apiv3/tags/queries.yml b/docs/api/apiv3/tags/queries.ymlindex a27cec48a45..b6bf88dc109 100644--- a/docs/api/apiv3/tags/queries.yml+++ b/docs/api/apiv3/tags/queries.yml@@ -1,6 +1,6 @@---description: |- A query defines how work packages can be filtered and displayed.+ A query defines how work packages can be filtered and displayed.Clients can define a query once, store it, and use it later on to load the same set of filters and display options.## Actions@@ -27,33 +27,33 @@ description: || schema | This query's schema | Schema | | READ |Please note, that all the properties listed above will also be embedded when individual queries are returned but will not be embedded when a list of queries is returned. Whether the properties are embedded or not may be subject to change in the future.-+The `columns` and `highlightedAttributes` properties will be moved into `Views::WorkPackagesTable` so it is deprecated to have it listed within the Query directly.## Local Properties- | Property | Description | Type | Constraints | Supported operations |- | :--------------: | ------------------------------------------------------ | ----------- | ------------------------------------ | -------------------- |- | id | Query id | Integer | x > 0 | READ |- | name | Query name | String | | READ/WRITE |- | filters | A set of QueryFilters which will be applied to the work packages to determine the resulting work packages | []QueryFilterInstance | | READ/WRITE |- | sums | Should sums (of supported properties) be shown? | Boolean | | READ/WRITE |- | timelineVisible | Should the timeline mode be shown? | Boolean | | READ/WRITE |- | timelineLabels | Which labels are shown in the timeline, empty when default | QueryTimelineLabels | | READ/WRITE |- | timelineZoomLevel| Which zoom level should the timeline be rendered in? | String | days, weeks, months, quarters, years | READ/WRITE |- | timestamps | The timestamps to filter by when showing changed attributes on work packages. | []Timestamps | | READ/WRITE |- | highlightingMode | Which highlighting mode should the table have? | String | none, inline, status, priority, type | READ/WRITE |- | showHierarchies | Should the hierarchy mode be enabled? | Boolean | | READ/WRITE |- | hidden | Should the query be hidden from the query list? | Boolean | | READ/WRITE |- | public | Can users besides the owner see the query? | Boolean | | READ/WRITE |- | starred | Should the query be highlighted to the user? | Boolean | | READ |- | createdAt | Time of creation | DateTime | not null | READ |- | updatedAt | Time of the most recent change to the query | DateTime | not null | READ |+ | Property | Description | Type | Constraints | Supported operations |+ | :--------------: | ------------------------------------------------------ | ----------- | ------------------------------------ | -------------------- |+ | id | Query id | Integer | x > 0 | READ |+ | name | Query name | String | | READ/WRITE |+ | filters | A set of QueryFilters which will be applied to the work packages to determine the resulting work packages | []QueryFilterInstance | | READ/WRITE |+ | sums | Should sums (of supported properties) be shown? | Boolean | | READ/WRITE |+ | timelineVisible | Should the timeline mode be shown? | Boolean | | READ/WRITE |+ | timelineLabels | Which labels are shown in the timeline, empty when default | QueryTimelineLabels | | READ/WRITE |+ | timelineZoomLevel| Which zoom level should the timeline be rendered in? | String | days, weeks, months, quarters, years | READ/WRITE |+ | timestamps | **Only with valid Enterprise Token available:** The timestamps to filter by when showing changed attributes on work packages.| []Timestamp | | READ/WRITE |+ | highlightingMode | Which highlighting mode should the table have? | String | none, inline, status, priority, type | READ/WRITE |+ | showHierarchies | Should the hierarchy mode be enabled? | Boolean | | READ/WRITE |+ | hidden | Should the query be hidden from the query list? | Boolean | | READ/WRITE |+ | public | Can users besides the owner see the query? | Boolean | | READ/WRITE |+ | starred | Should the query be highlighted to the user? | Boolean | | READ |+ | createdAt | Time of creation | DateTime | not null | READ |+ | updatedAt | Time of the most recent change to the query | DateTime | not null | READ |A query that is not assigned to a project (`"project": null`) is called a global query. Global queries filter work packages regardless of the project they are assigned to. As such, a different set of filters exists for those queries.-+The `hidden` property is deprecated as it is replaced by the `Views` concept. A query that isn't hidden will have a `View` while a query that is hidden won't.-+The `timelineVisible`, `timelineLabels`, `timelineZoomLevel`, `highlightingMode` and `showHierarchies` properties will be moved into the more appropriate Views (probably `Views::WorkPackagesTable`) so it is deprecated to have them within the Query directly.## Query Filter Instance@@ -119,5 +119,5 @@ description: |}```-+name: Queries