You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »


The following modules are powered by CQL: News, Activity, Search and Pages

Sites and categories introduced by RefinedTheme can be used in a CQL statement. 

KeyTypeDescriptionExample query
refinedSitenumberThe site id. You can find the site Id in the Site Builder. Click edit on a site and take the site id from the url.refinedSite = 123
refinedCategorystringThe category key.refinedCategory = hr


Atlassian CQL documentation

Read this document to learn more about CQL: https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/


Examples

Display the user's favorite pages. See example below under the "my favourite pages' section. 

favorite = currentUser() and type = page

Get all blog posts from a site.

type = blogpost AND refinedSite = 123 ORDER BY created DESC


Get all blog posts from a category.

type = blogpost AND refinedCategory = hr ORDER BY created DESC

Get all blog posts added by the current logged in user. 

Tip: Text Variables can be used to construct CQL queries. 

type = blogpost AND creator = $username ORDER BY created DESC

Get all blogposts from the blog site.

type = blogpost AND space IN blogSite() ORDER BY created DESC


Get all blogposts from blog spaces

type = blogpost AND space IN blogs() ORDER BY created DESC


  • No labels