It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I show issues ordered by number of labels?

I have a custom field called "Related support tickets" which is a label type field, and I'd like to view a list of issues that have >0 support tickets assigned, ordered by number of tickets. How can I do this?

I chose label type simply because the UI for it works for what I'm trying to do (link multiple support tickets -- from different customers -- to one bug). I'm not opposed to changing the method if someone has a better suggestion.

2 answers

1 accepted

0 votes
Answer accepted

I was trying to do this same thing again, and found this question (which I forgot I asked). This is now possible with the JIRA Music Custom Fields plugin by Innovalog:

  1. Create a new custom numeric field
  2. Use formula <!-- @@Formula: issue.get("customfield_11000").size() --> (substituting the correct id, of course)
  3. Re-index JIRA

Now you can run JQL like: "Number of Support Tickets" > 0 and status != closed order by "Number of Support Tickets" desc

 

Rather than using labels, the linking feature of the Jira is better suited for your usecase. But in this approach also, there is no OOTB solution for counting the number of links.

I'm not using JIRA for support though, so there's nothing to link it to using the linking feature. In JIRA 5 apparently you can link to web sites, but again, doesn't help since I'm not on 5, there's no way to count, and questionable since now I need to copy/paste the full external link instead of just a 5 digit number.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Managing Incidents - The roof is on FIRE!

The roof is on FIRE… network outages, broken processes, upset clients and employees. Each day seemed to bring more and more issues. Incidents were communicated via email, messengers (skype or teams) ...

104 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you