For Confluence Cloud, the cql appears to expect the time in the local time of the person who created the instance. If the instance is created in Bulgaria ( UTC+2 ), and I want to find any page modified after 9AM UTC, I need to add 2 hours to the query for it to evaluate correctly. So the query time is 11:00. If the instance was created by a user in PST (UTC-8), then a query must specify 01:00. The query doesn't support specifying a timezone. The query is NOT affected by the timezone in the users profile. For example, my profile TZ is UTC+0, however I'm in PST. The Cloud instance has persisted the timezone the instance was created from and it doesn't appear to be visible anywhere.
if you use some alternate syntax, you might be able to achieve what you are looking for. It's too bad that the standard CQL syntax doesn't support it:
From the above post:
text ~ "created:[20150610143026 TO 20151231]"
doesn't work ( I used 20200101 TO 20220101 as the dates, when searching for a newly created page). It appears it is treating what is in quotes as a literal string resulting in always returning 0 items. I believe this because replacing what is in quotes with random chars DOES NOT generate a parsing error.
The ~ syntax is documented to be <property> ~ "value". So, I then used created instead of text, and I got:
Operator '~' is not supported for field 'created'
So, I believe the range syntax support may have been removed in the current (cloud) version.
Any other ideas?
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events