Going Stellar

Home/CQL reference

CQL field

favourite in CQL (Confluence): syntax and examples

The favourite field finds content that a user has starred. It accepts the British spelling favourite and the American spelling favorite. The docs say you can filter only on your own favourites, so in practice you write favourite = currentUser().

Syntax

favourite = currentUser()
favorite = currentUser()
favourite = "<accountId>"

Arguments

ArgumentWhat it does
valuecurrentUser(), or your own accountId in quotes. The docs say that filtering on another user's favourites is not allowed.

Works with

  • Operators: =, !=, IN, NOT IN (~, !~, >, >=, <, <= are rejected)
  • Functions: currentUser()
  • Spelling: favourite and favorite are the same field
  • Not with: a bare favourite without an operator

Examples

favourite = currentUser() AND type = space

Lists the spaces you starred, for example to build a quick-links page.

Run on Confluence Cloud on .

favorite = currentUser()

The American spelling, which behaves exactly like favourite.

Run on Confluence Cloud on .

favourite = currentUser() AND type = space AND space.type = personal

Finds whether your personal space is among your starred spaces.

Run on Confluence Cloud on .

favourite = currentUser() AND type = page ORDER BY lastmodified DESC

Lists starred pages, most recently changed first, to see which of them need attention.

Run on Confluence Cloud on .

favourite in (currentUser())

The same filter written as a list, which is useful when you build the query from a template.

Run on Confluence Cloud on .

Pitfalls

  • The field is not limited to pages. favourite = currentUser() also returns starred spaces, so add type = page or type = space to say which you want (checked on Confluence Cloud, November 2026).
  • The doc example favourite = "99:27935d01-XXXX-XXXX-XXXX-a9b8d3b2ae2e" runs without an error for an accountId other than yours, and gives no results. Because of the security restriction in the docs, you cannot tell an empty list from a blocked one.
  • A bare favourite fails with: Expecting operator for field 'favourite', supported operators are : =, !=, IN, NOT IN. The doc lists it as an example, but it is not a valid query.
  • favourite != currentUser() keeps everything you have not starred, which is nearly all content. Use it only with other filters.

Questions and answers

Is favorite a typo?

No. The unknown-field error for a misspelt name suggests it, and favorite = currentUser() runs and matches the same items as the British spelling.

Sources

  1. CQL fields (Atlassian Developer, Confluence Cloud)

Markdown version · All CQL pages