Going Stellar

Home/CQL reference

CQL field

contributor in CQL: syntax and examples (Confluence)

contributor matches anyone who created or edited a piece of content. It answers "which pages did this person touch", which creator cannot, because creator only names the author of the first version. It is the better field for workload and review questions.

Syntax

contributor = currentUser()
contributor = "<accountId>"
contributor.fullname ~ "<name>"

Arguments

ArgumentWhat it doesOptional
accountIdThe Atlassian account id of the user, quoted.no
currentUser()The person running the search.no
.fullnameA sub-field with the display name, matched with ~. Depends on profile visibility.no

Works with

  • Operators: =, !=, IN, NOT IN
  • Functions: currentUser()
  • Not with: ~, !~, >, >=, <, <= on contributor itself. Use contributor.fullname for text.

Examples

contributor = currentUser() AND type = page AND lastmodified >= startOfWeek()

Pages you worked on this week, whether you created them or edited someone else's. Good input for a weekly summary.

Run on Confluence Cloud on .

contributor.fullname ~ "Gigi" AND type = page AND space = SD

Everything a named person touched in one space. Use it when a colleague leaves and their pages need new owners.

Run on Confluence Cloud on .

contributor in (currentUser()) AND title ~ "runbook"

Runbooks you have contributed to, mixing the field with a title search.

Run on Confluence Cloud on .

contributor = currentUser() AND type = comment

Comments you took part in. Comments count as content, so they appear in the results too.

Run on Confluence Cloud on .

contributor = currentUser() AND creator != currentUser()

Pages you edited but did not start. For a team with several users this finds your edits on other people's pages.

Run on Confluence Cloud on .

Pitfalls

  • The last example returns nothing when only one person has ever worked in the site, because every page was created by that person. That is a correct empty result, not an error (checked on Confluence Cloud, November 2026).
  • contributor with a plain name, such as contributor = "Gigi", does not search names. Only the account id or currentUser() go with =. Use contributor.fullname ~ "Gigi".
  • Text operators are refused on the field itself: contributor ~ currentUser() returns: Operator '~' is not supported for field 'contributor'. Only =, !=, IN and NOT IN are accepted.

Sources

  1. CQL fields (Atlassian Developer, Confluence Cloud)
  2. CQL functions (Atlassian Developer, Confluence Cloud)

Markdown version · All CQL pages