Relative Date Queries with Confluence

I'm trying to run a Confluence query with a relative date. Specifically I want to fetch documents created within the last X days (from the search field within Confluence).

What works is this:

created:[20150311 TO 20150317]
created:[20150311 TO NOW]

But what I would like to run is something like this:

created:[NOW-7DAY TO NOW]
created:[StartOfWeek TO NOW]

I already tried without success some formats with inspiration from

 

https://jira.atlassian.com/browse/CONF-10107 and the fact the the keyword "NOW" is supported makes me think that there is a solution to my problem. But I cannot find any documentation on this topic.

Is there documentation on the syntax of relative date range queries with Confluence? Or is this not supported?

1 answer

1 accepted

1 vote
Accepted answer
Stephen Deutsch Community Champion Mar 17, 2015

Hi Robert,

CQL supports this, but it's not yet fully supported in the interface.  If you are running Confluence Cloud, I wrote an add-on to expose it in the interface: https://marketplace.atlassian.com/plugins/cql-search

Otherwise, I'm afraid you're stuck with the syntax that worked for you above, at least until Atlassian implements it in the interface for all users (or I get around to writing a Confluence Server version of the add-on).

However, don't forget that you can limit your search with the options on the left side of the screen from the search page (unfortunately, it only works for last modified).

Hi Stephen, thank you very much! Robert

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,099 views 17 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you