Skip to main content
Skip table of contents

Useful CQLs


Find content within the current space

CODE
text ~ $$query$$ and space = $$space.key$$  

Find content by title within the current space

CODE
title ~ $$query$$ and space = $$space.key$$  

Find content that has mentioned the current user

CODE
text ~ $$query$$ and mention = currentUser()

Find content in the current space that mentions the given user

CODE
space = $$space.key$$ and mention = $$query$$

Find page that is favourited by the current user

CODE
favorite = currentUser() and type = page

Find content that are contributed by the given user since past week

CODE
contributor = $$query$$ and lastModified > startOfWeek("-1w") and type not in (comment,attachment) order by type desc
  • For this to work, please set the Search Type to Exact Match

Display pages within the current space that do not have any label

CODE
sitesearch ~ "type:page AND NOT (labelText:[a TO z] OR labelText:[0 TO 9]) AND spacekey:$$space.key$$"

Reference


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.