Searching data in custom fields (label type)

Felipe November 14, 2019

Hi all, I created a custom field for issues which has the labels format.

I am trying to do a search for a particular label.

Show all tickets which has XXX label. This wouldn't be exact.

 

Example:

For example: Ticket has label ABC1234

 

I want to search for 1234 and see that ticket on the results

 

I tried fieldname IN 1234, that did not work

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2019

Hi @Felipe,

Welcome to the Atlassian Community.

JQL only allows you to search on whole words, except for fuzzy searches. You would need an app that allows you to do partial searches. We use Scriptrunner which allows me to do a query like this:

issueFunction in issueFieldMatch("project = JRA", labels, "f_*")

There are a couple of apps on the Marketplace that allows you to extend JQL, and I bet they allow partial searches too.

Felipe November 18, 2019

Thank you!

Suggest an answer

Log in or Sign up to answer