# contributor in CQL: syntax and examples (Confluence)

URL: https://goingstellar.ro/reference/cql/contributor-field/

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

- `accountId` (optional: no): The Atlassian account id of the user, quoted.
- `currentUser()` (optional: no): The person running the search.
- `.fullname` (optional: no): A sub-field with the display name, matched with ~. Depends on profile visibility.

## 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 2026-11-29.

```
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 2026-11-29.

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

Runbooks you have contributed to, mixing the field with a title search. Run on Confluence Cloud on 2026-11-29.

```
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 2026-11-29.

```
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 2026-11-29.

## 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.

## Related

- [creator](https://goingstellar.ro/reference/cql/creator-field/)
- [currentUser()](https://goingstellar.ro/reference/cql/currentuser/)
- [lastmodified](https://goingstellar.ro/reference/cql/lastmodified-field/)
- [watcher](https://goingstellar.ro/reference/cql/watcher-field/)
- [mention](https://goingstellar.ro/reference/cql/mention-field/)
- [IN](https://goingstellar.ro/reference/cql/in-operator/)

## Sources

- [CQL fields (Atlassian Developer, Confluence Cloud)](https://developer.atlassian.com/cloud/confluence/cql-fields/)
- [CQL functions (Atlassian Developer, Confluence Cloud)](https://developer.atlassian.com/cloud/confluence/cql-functions/)

