How to filter on strings with underscores

Hi there -  I have a JIRA issue when I wish to filter on a field n JIRA and extract all my test cases, where one oft he fields contains a string.

 

I wish to filter on strings containing a substring that appears after an underscore '_'. This is with the ~ operator. For example , I want to find issues that contain FUNC  in the middle on the searched field -  and typical strings to search and match might be TC_FUNC_001, TC_FUNC_002, whereas an issue with TC_RESP_001 would not be matched.

Looked on web and also at JIRA support defects but I cannot find this. It might be necessary to escape the underscore '_', but I can;t find out how to do this from the web.

 

Thanks for your advice..

2 answers

There are many problems with fuzzy search and the underscore character. See this thread for example. Since you are looking for a partial match, I think your best option would be to use the Script Runner JQL function issuefieldmatch if you have Script Runner installed.

0 vote
Ignacio Pulgar Community Champion Jun 29, 2016

Hi Rob,

It seems that you can escape certain special characters so that they are subject to text search in JQL.

However, the underscore sign doesn't seem to be supported yet.

Regards

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Stride

Get Started in Stride in 3 Easy Steps

Get started on Stride in 3 easy steps   If you’re new to Stride, welcome! We’re super excited to have you aboard. Stride is easy to use and set up, so don’t worry about reading tons of borin...

54 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you