JQL function
componentsLeadByUser() in JQL: syntax and examples
componentsLeadByUser() expands to every component whose lead is a given person. Use it to build a personal queue for a component owner without listing component names by hand. With no argument it uses the user running the search.
Syntax
componentsLeadByUser()
componentsLeadByUser(username)
Arguments
| Argument | What it does | Optional |
|---|---|---|
username | The user whose components 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: Component
- Operators: IN, NOT IN
- Not with: =, !=, ~, !~, >, >=, <, <=, IS, IS NOT, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED
Examples
component in componentsLeadByUser() AND statusCategory != DoneEverything still open in the components you lead. A good saved filter for a component owner to check each morning.
Run on Jira Cloud on .
component in componentsLeadByUser() AND assignee is EMPTY ORDER BY created DESCUnassigned work in your components, newest first. The component lead can hand these out in a triage session.
Run on Jira Cloud on .
component in componentsLeadByUser() AND project = WEBLimits the list to one project. Useful when the same component name is used in several projects and you only care about one of them.
Run on Jira Cloud on .
component in componentsLeadByUser() ORDER BY priority DESC, updated ASCYour components' work sorted with the most urgent first and, within a priority, the longest untouched first.
Run on Jira Cloud on .
component not in componentsLeadByUser() AND project = WEB AND component is not EMPTYWork in components that someone else leads. It helps when you hand over a project and want to see what is not yours.
Run on Jira Cloud on .
Pitfalls
- The function returns a list, so it only works with
inandnot in.component = componentsLeadByUser()fails with: "Operator '=' does not support the list value 'componentsLeadByUser()' for field 'component'." (checked on Jira Cloud, November 2026) - The argument is a user name that must exist. The docs example
componentsLeadByUser(bill)fails when there is no such user: "Function 'componentsLeadByUser' can not generate a list of components for user 'bill'; the user does not exist." (checked on Jira Cloud, November 2026) currentUser()cannot be passed as the argument.componentsLeadByUser(currentUser())is a syntax error ("Expecting ')' or ',' but got '('"). Call the function with no argument instead, which already means the current user. (checked on Jira Cloud, November 2026)- Only the component field is meant to receive the result, and the function does not look at project leads. For projects use projectsLeadByUser().
Questions and answers
Does componentsLeadByUser() work without an argument?
Yes. With no argument it uses the user who runs the search, so a saved filter shows each person their own components.