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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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