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.

Thanks,

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 Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,336 views 0 8
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