Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

search advanced with period in phrase yields no result BIS

Manuel Delafortrie November 20, 2017

On 25 October, I asked a question. I had an issue with the response, but nothing was forthcoming.

"When I do an advanced search with a phrase that contains a period (.), the results are  unexpected.

I need to find issues that contain the string ".airspace." without those where airspace only appears without the two periods.

With Summary ~ ".airspace." I get those without the periods too.

When I add a word that precedes the string to avoid this problem, there is no result:

"word1.airspace." will give no results.

"word1\\.airspace." will give no results

"word1\\.airspace.\\" will give no results

even though ".airspace." will give the results and "word1" will give the results, but both with too many false hits.

What can I do?"

I received this answer:

"According to the linked community thread:

https://community.atlassian.com/t5/Questions/Searching-an-issue-which-matches-exactly-the-given-words/qaq-p/248591

for this type of exact match search, you can use double quotes, but internal quote needs to be escaped with backslash:

summary ~ "\".airspace.\""

 I tried to do the same search in our local instances and it is giving correct results.

Please, try it and let us know how it went.

Regards,

Marko"

I replied:

Thanks for the reply. Unfortunately it does not work.

summary ~ "\".airspace.\""

returns also all the issues that have the word airspace in the summary. I want to have only those with the periods.

I want to find .airspace. without "airspace".

Can anyone help me?

Thanks!

Manuel

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 21, 2017

Hi Manuel,

Natively Jira won't let you search for exact string matches like this.  There is an open feature request for this in https://jira.atlassian.com/browse/JRASERVER-21372

In native JQL, Jira is using word stemming as a means to store and search for these terms.  It is not able to search for these string fragments in the way you are trying here.

It might be possible to get this kind of searching in Jira with the use of a 3rd party plugin like scriptrunner.   That plugin can provide you the ability to use regex as a means to search for field value matches as explained in https://scriptrunner.adaptavist.com/4.3.0/jira/jql-functions.html#_issuefieldexactmatch

I hope this helps.

Regards,

Andy

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events