Is it possible to find if the component in issues is not lead by any user

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.

1 answer

1 accepted

Hey Angelos,

Quickly put together a JQL function. Download it from

https://bitbucket.org/bhushan154/jira-components-with-no-leads-jql-function/downloads

For syntax refer to

https://bitbucket.org/bhushan154/jira-components-with-no-leads-jql-function/wiki/Home

For simple dev tutorials check out www.jiradev.com

Cheers

Bhushan

Thanks Bhushan,

This JAR file contains a DateRangeJqlFunction.class as wekk as the components with no leads as well as google-gson library. Are these required for that JQL function?

I don't want to install before I am certain it contains the absolute necessary and I have no experience creating jira plugins.

Could you please clarify? thank you

Hello Bhushan,

Can you please update you answer with the most up to date links to the files so I can then accept the answer?

I will probably try to utilise script runner to implement something similar, but your plugin should also work nicely.

Thanks a lot for it.

Angelos

Hey Angelos,

This plugin contains 3 functions so I renamed it to

https://bitbucket.org/bhushan154/jira-miscellaneous-jql-functions

The functions available in the plugin are

https://bitbucket.org/bhushan154/jira-miscellaneous-jql-functions/wiki/Home

If you only want one of those three functions, you can just use the right class it is implemented in.

Thank you

Bhushan

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot