How many links does an issue have?

I would like to be able to display and sort by the number of links an issue has. Is there a way to do this? We would like to use this as a proxy for a priority. The more related issues (links) an issue has, the higher priority it is.

3 answers

1 accepted

0 vote

I don't think you can do this in off-the-shelf Jira.

I wrote a plugin to solve this ages ago which simply did the count as a "derived field". You could sort, search as numeric (e.g. more than 20 links) and so-on.

I'm afraid that even if I dug it up and published it, you couldn't use it in OnDemand because they don't allow plugins yet. There are some things you can do with JQL I believe, but they won't display or sort.

OnOndemand you can use the REST API to get an issue list and count the links (inward and outward), sort them and update the priority field by executing a remote script. All those things are supported by the remote API.

Was a solution found for this? I am trying to do this with the Misc Custom Fields plug-in where I have a calculated number field based on the number of linked tickets, but I am having issues with the formula counting the links. If anyone has done this, please let me know.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

364 views 6 16
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot