We have a project among many projects that has 100s of components. Some of those have a leader setup where others don't have a leader.
Issues that are raised with components that are lead by a user, are triaged by those leaders and their teams.
On the other hand issues that have components without a lead, need to be triaged by our 1st line of support.
my JQL for the first looks like:
assignee is EMPTY AND component in componentsLeadByUser("joe.bloggs") AND status != Closed
the JQL for the second would currently looks something like:
assignee is EMPTY AND component not in componentsLeadByUser("lead.1") AND component not in componentsLeadByUser("lead.2") AND component not in componentsLeadByUser("lead.3") ... AND component not in componentsLeadByUser("lead.X") AND status != Closed
However the above doesn't scale well so ideally I would expect a function like componentsLeadByUser(NULL) or a brand new function.