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 votes

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
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

502 views 0 9
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