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?

Greg MacLellan Feb 10, 2012

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
Greg MacLellan Jan 06, 2016

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

 

0 votes
Renjith Pillai Feb 10, 2012

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.

Greg MacLellan Feb 12, 2012

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

1,502 views 3 14
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