Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Reporting on specific labels


I would like to report on specific labels, broken down by ticket type, in a dashboard view. I can report on labels easily using the two dimensional filter statistics gadget, choosing label as the Y-axis and ticket type as the X-axis. I then use a query looking for the specific filters I need.

The problem with this is where tickets have two or more labels. For example, I want to see data only for labels X, Y and Z. My filter query is

project = TTP AND labels in (X, Y, Z) order by created DESC

If a ticket with label X also has label A, that is shown as well. I'd like the report with only the named labels in the filter query.

1 answer

1 accepted

0 votes
Answer accepted

You would need to rewrite the gadget so that it can arbitrarily ignore data that you don't want to see.

Before you question that, it is worth explaining why I've said that.

A search (a filter is a saved search definition to re-run by things) returns a list of issues.  It does not return any of the data in the issues, it literally is just a pile of issues.

Gadgets, boards, reports, the issue navigator and so-on all build a view of a pile of issues. 

So, it is not the search that is responsible for what you see, but the code that creates the view of it.

In this case, the filter statistics gadget has been coded to show you rows and columns defined by two fields.  So it takes the list of issues, looks at the fields on them and builds a column and row for each different value it has been given.

It has no way for you to tell it "please ignore values of X" or "please only show me values of Y"

Thanks. I understand why you said this and was expecting this to be the answer. It's a UI rendering thing rather than a query thing. Worth checking though.

When you say "rewrite the gadget" this is the OOTB two dimensional filter statistics gadget. Do you know if the source is available for this, e.g. to branch on Guthub, or do I need to write something from scratch?

I don't think the Cloud gadget code is available.  I think it's done with the same app that Server uses which is a "type 2 plugin", which you can't install in Cloud.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

112 views 1 2
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