Trying to find issues with no child links

I am trying to write a query that finds all issues in a project which have no 'is parent of' links to a child issue.

The only JQL function that I have found which lets me query links for an issue is linkedIssues(key), or linkedIssues(key,type).

However I cannot make this work.

It seems that I need a Query function which works as:

getLinkQty()

or getLinkQty(type)

In both cases it would return the number of links of type that an issue has.

This would let me build a query such as:

project = LFEAT AND issuetype = HLR and getLinkQty('is parent of')!=0

Is there such a function available, or is there an alternate way to build a query in JQL which can satisfy this?

Curently using JIRA 4.1, but upgrading to JIRA 5.0 soon.

1 answer

1 accepted

This widget could not be displayed.

JQL Tricks plugin should do the trick. It's a paid plugin though. It looks like Search Linked Issues for JIRA will also work for you:

issue in/not in linkedIssuesFromQuery("JQL query", "relation name","direction of relation") - finds all issues which are linked by w specified relation with those found by specified query

I went with the Search Linked Issues for JIRA solution and after a bit of head scratching managed to get it to work.

Thanks for the quick answer.

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 yesterday 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...

54 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