How to use wildcards for lables field ?

panbinsuiyuan September 25, 2017

We want to searching the tickets which the lables contain "dde" by JQL.

Is there any possible can achieve this function?

3 answers

2 votes
Raul Pelaez _TecnoFor - Marketplace Partner_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 21, 2021

Basically is:

issueFunction in issueFieldMatch("filter='all_projects'", labels, "(foo)")

More info: https://mraddon.blog/2018/11/19/jql-trick-how-to-search-for-labels-with-a-wildcard-expression-in-jira-server/ 

Saurabh Kejriwal January 19, 2024

Thanks for sharing. It works :)

1 vote
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2017

Natively, Jira can't do this by itself.  The labels field does not permit the searching with wildcards, or the use of the ~ contains operator.   There is an existing feature request to add this functionality to Jira in https://jira.atlassian.com/browse/JRASERVER-23038

But this request is common enough that other plugins to Jira have been created that can actually handle this.   I know that Scriptrunner can do this with the issueFunction in issueFieldMatch search.   The specifics of how this could be done are also explained over in the post How to search for labels with a wildcard? - Atlassian Community

There are also other plugins that might help, such as

Wildcard Search plugin for Jira

or

JQL Tricks

Brett Rule
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2018

what year is this? 1998

Like # people like this
Floor Verschure
Contributor
December 20, 2021

Respectfully meant to Jira developers, the above comment is what I think a lot when using Jira. 

When searching for something which should be there out of the box from a user perspective you find all kinds of explanations on technical level why it is not there and how to work around it. 

Really hope at some point general user experience gets better without the need to install and pay for another plugin.

Like # people like this
0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2017

Hi Panbinsuiyuan,

There is an open Suggestion to allow wild card searching that you can find at JRASERVER-23038.  Please vote on the issue to add impact and you'll be notified of any changes to the ticket including a fix version.

Cheers,

Branden

panbinsuiyuan September 26, 2017

Thanks very much

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events