JQL function
projectsLeadByUser() / spacesLeadByUser() in JQL
projectsLeadByUser() expands to every project whose lead is a given person. The current docs call it spacesLeadByUser(), and both names run. Use it with the project field to see the work in the projects you lead.
Syntax
projectsLeadByUser()
projectsLeadByUser(username)
spacesLeadByUser()
spacesLeadByUser(username)
Arguments
| Argument | What it does | Optional |
|---|---|---|
username | The user whose projects you want. Leave it out to use the current user. The docs say a user is required when you are not logged in to Jira. | yes |
Works with
- Fields: project (called Space in the docs)
- Operators: IN, NOT IN
- Not with: =, !=, ~, !~, >, >=, <, <=, IS, IS NOT, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED
Examples
project in projectsLeadByUser() AND statusCategory != Done ORDER BY priority DESCAll open work across the projects you lead, most urgent first. A base filter for a dashboard that a project lead keeps open.
Run on Jira Cloud on .
project in spacesLeadByUser() AND status = "In Progress" ORDER BY updated ASCWork in progress in your projects, with the stalest at the top. The new function name behaves the same as the old one.
Run on Jira Cloud on .
project in projectsLeadByUser() AND duedate < now() AND statusCategory != DoneOverdue work in the projects you lead. Check it before a weekly status meeting.
Run on Jira Cloud on .
project not in projectsLeadByUser() AND statusCategory != DoneOpen work in projects you do not lead. It shows what falls outside your area of responsibility.
Run on Jira Cloud on .
project in projectsWhereUserHasPermission("Edit Issues") AND project in projectsLeadByUser()Two project lists in one query: the projects you lead that you can also edit work in. Both clauses must hold, so you get the overlap.
Run on Jira Cloud on .
Pitfalls
- The doc example
space in spacesLeadByUser()does not run, because the JQL field is stillproject. The error is "Field 'space' does not exist or you do not have permission to view it." Writeproject in spacesLeadByUser(). (checked on Jira Cloud, November 2026) - The second doc example contains a typo,
pspacesLeadByUser(bill), which gives "Unable to find JQL function 'pspacesLeadByUser(bill)'." Even without the typo, a user name that does not exist fails: "Function 'projectsLeadByUser' can not generate a list of projects for user 'bill'; the user does not exist." (checked on Jira Cloud, November 2026) project = projectsLeadByUser()fails with "Operator '=' does not support the list value". Useinornot in.currentUser()is also not accepted as the argument; leave the parentheses empty. (checked on Jira Cloud, November 2026)- The result is only valid for the project field.
component in projectsLeadByUser()gives "A value provided by the function 'projectsLeadByUser' is invalid for the field 'component'." (checked on Jira Cloud, November 2026)
Questions and answers
Is spacesLeadByUser() a different function?
No. It is the new documentation name for projectsLeadByUser(), and both are accepted in a query. In the field part you still write project.