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 votes

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
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


245 views 0 6
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