Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Labels for Reporting - need multiple labels

Shapiro, Deb [JRDUS NON-J&J] July 29, 2022

Hi folks,

I need to create a report with specific labels only, and do not want to have all labels returned in the report, only the specific labels that I need. The company I am working with does not have scriptrunner nor do I have the ability to create fields. I have tried labels = XX AND !labels = XX and !labels = XX  and labels in (XX, XX, XX)  this did not work, it returns all the many labels that I have used. Unfortunately, I am unable to use any add ons and I hope someone may have a solution???

Thank you in advance!

Deb

2 answers

0 votes
Aron Gombas _Midori_
Community Champion
July 29, 2022

I'm not sure what's the problem, but these definitely work:

labels = foo

labels IN (foo, bar, baz)

The first will find every issue labelled with "foo", which the second will find every issue labelled with any of those 3 labels. 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2022

Welcome to the Atlassian Community!

I'm afraid we can't help you much here, you've not explained what you are trying to do.  

We can tell you that "!labels = " is not going to do anything useful, as it's not a valid search term, but we can't give you clauses that might work because we don't know what you're trying to do.

Could you give us the question in plain English?  Something like "Show me a list of issues that have label X and label Y"

Shapiro, Deb [JRDUS NON-J&J] August 1, 2022

Hi Nic, I have reworded my request, I hope this helps. explain my issue better.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2022

Ah, I see, your problem is nothing to do with searching, it's the results.

A search for issues simply returns a list of issues that match the question in the search.  It has nothing to say about what you do with that list of issues.

A lot of the time, what you're going to do is run the search through a report.

What you're saying here is that the report (whether it be the issue navigator, a dashboard gadget, board, project report etc, is showing you all the labels on the issues the search has found.

I'm afraid that's the correct behaviour for reports - they're supposed to be showing you the issues you searched for. 

I'm not aware of any report apps where you can configure them to say "show me the issues, but drop some of the data off that I don't want to see, despite it being on the issues"

Shapiro, Deb [JRDUS NON-J&J] August 1, 2022

True, but I have seen many other questions on here indicate that there are ways to filter by specific labels only and not have all labels return in the report, I think that is where I am confused. If you are stating that I cannot create a report of any type that returns with only one label as the result then that is the correct response. I am grateful for your time.

That being said, is there a way to display a one or two label report in Confluence or in a Jira Dashboard?

Thank you very much.

Suggest an answer

Log in or Sign up to answer