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

This widget could not be displayed.

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.

This widget could not be displayed.

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.


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

99 views 1 0
Join discussion

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