The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How do I create a JQL filter to filter a label?

Tainah Cinti
April 2, 2024

Hi All,

I need to filter a label called 'Roadmap' in a Board and I tried to create a simple filter but it´s not pulling the tickets with this label. 

How can I use JQL to filter all tickets with this Roadmap Label? It should have just this label on it or the ticket can have more labels?

 

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Trudy P Claspill
Community Champion
April 2, 2024

Hello @Tainah Cinti 

What is the JQL that you tried?

If you use a filter like this:

Labels = "Roadmap"

...then you will get all issues that have the value "Roadmap" as a Label. This does not exclude issues that have other Labels values also.

Jira does not provide a native method to filter for issues that have one and only one specific value in the Labels field. The only native method for doing that is to add another clause to the filter that enumerates all the other possible Labels values:

AND Labels not in ("labelvalue1","labelvalue2","labelvalue3",...)

There are other possible work arounds, like using Automation Rules to update a field that holds a count of how many Labels values an issue has. If you did that you could then use a JQL like this:

Labels='Roadmap' and Labels_Count=1

Tainah Cinti
April 18, 2024

Thank you, but I want to have this filter in the Board page. Is it possible? To see with a kanban view.
And there´s no problem to have more values.

Trudy P Claspill
Community Champion
April 18, 2024

In the Kanban boards for Software and Service projects (both Team Managed and Company Managed) you can make and save Quick/Custom filters that you can reuse to show a subset of the issue included in the board. You must be an administrator for the board, and a project administrator for the Location project specified for the board.

https://support.atlassian.com/jira-software-cloud/docs/configure-quick-filters/

In Business/Work Management boards there is a Filters option that allows you to create and save filter, but it doesn't allow you to use JQL. It does, however, let you filter based on Labels and it shows you the label values from which you can select.

https://support.atlassian.com/jira-work-management/docs/filter-items-to-find-what-you-need-in-your-project/

Like Tainah Cinti likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events