Search for all issues where all linked issues are closed

I have a JQL query that uses the Search Linked Issues for JIRA plug-in to find all issues where the linked issues are all closed. The query takes an average of 55 seconds to run and might return < 100 records.

As you can see in my JQL, I have to exclude anything not closed, then include anything that's closed. Is there a way to optimize this query? Or maybe there's a more efficient plug-in I can use?

project = VMC AND issuetype = Feature AND fixVersion = "Release 2.4" AND issue not in linkedIssuesFromQuery("project = VMC and issuetype = Story and status in (New, \"In Progress\", \"In Testing\", Reopened, Completed)") AND issue in linkedIssuesFromQuery("project = VMC and issuetype = Story and status = Closed")

Thank you

1 answer

1 accepted

This widget could not be displayed.

I'm not sure if this will boost your performance, however I believe a "=" or "!=" is faster than an "in" operator. So you could try:

project = VMC AND issuetype = Feature AND fixVersion = "Release 2.4" AND issue not in linkedIssuesFromQuery("project = VMC and issuetype = Story and status != Closed") AND issue in linkedIssuesFromQuery("project = VMC and issuetype = Story and status = Closed")

You can achieve the same result via script runner plugin there I would use

project = VMC AND issuetype = Feature AND fixVersion = "Release 2.4" AND issuefunction in hasLinks("<YourLinkName>") and not issuefunction in linkedIssuesOf("project = VMC and issuetype = Story and status != Closed","<YourLinkName>")

But I don't know which would be faster.

Thank you. I used the script runner solution and it ran in seconds. Thank you!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

99 views 1 0
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