It's all about the answers!

Ask a question

Converting Jazz UI Query for 'Modified Date' to JQL Using OSLC REST API with Relative Time Filter


Dana Dan (1112) | asked Sep 25, 6:04 a.m.

In Jazz UI, when defining a query, we can add a condition to select items where the "Modified Date" is within "180 minutes before the current time." I am trying to convert my query into JQL to retrieve these items using the OSLC REST API from Jazz, but I haven’t found a way to achieve something similar.

For example, the following query works but isn't exactly what I need:

https://jazz-test.com/ccmfed/oslc/contexts/_twTEQPD4EeqF9u5lqn4W_g/workitems?oslc_cm.query=dc:modified>="2023-03-13T13:42:12.485Z"

Instead, I would like to specify something like:


https://jazz-test.com/ccmfed/oslc/contexts/_twTEQPD4EeqF9u5lqn4W_g/workitems?oslc_cm.query=dc:modified>= -180m

Is there a way to define a time range relative to the current time, such as "modified within the last 180 minutes"?

One answer



permanent link
Ian Barnard (2.3k714) | answered Sep 25, 6:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

AFAIK no the time has to be absolute - there's no way of specifying a relative time to 'now'


Comments
Ralph Schoon commented Sep 25, 7:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

If this is done programmatical, I would consider to compute the start and end timestamps to the time you want.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.