search order by number of linked JIRAs

Hello, I have two projects: project's X bugfixes are linked to project Y's customer issues. I want to create a filter that would give me a list of X stories ordered (DESC) by a number of linked Y stories.

For now I am ordering by update date:

issueFunction in linkedIssuesOf("resolution = 'Bug in Product'", "solved by") AND project = "X" AND status != closed ORDER BY updatedDate DESC

How to modify this search to include aggregation by number of linked Y issues? something like: "ORDER BY numberOfLinkedIssues DESC"

Do you think JQL Tricks might help here? If so, I'd recommend installing it in my organisation since we need this badly.


Andy Tokarski


2 answers

0 vote

You won't be able to order by number of linked issues because that is not an attribute on the issue (links are but not the number of linked issues). You can do that only if you capture the number of linked issues in a scripted field or calculated field.

I thought JQL Tricks might improve it. We'll implement your suggestion most probably then. Thanks! Andy

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

134 views 0 4
Read article

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