Forums

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

Dash (-) in search in custom field problems with wildcard

Lukáš Šlajferčík
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2021

Hello, 

 

I want find solution for incorrect search results in custom fields containing dashes.

 

Example: 

"scanning group" ~ G-SK_BA-022_00110 -> OK, list all issues contains exactly this group

"scanning group" ~ G-SK_BA-022 -> list nothing 

"scanning group" ~ "G-SK_BA-022*" -> list nothing

"scanning group" ~ "G-SK_BA*" -> list nothing

"scanning group" ~ "G-SK*" - list nothing

"scanning group" ~ "G*" - list all issues starting with "G" in scanning group

 

When i create issues with "scanning group" field value without dashes so then search works as i expect.

 

I think it worked fine before upgrade from v7 to v8.13.2

"Scanning group" is a text custom field.

 

Thanks for your help.

Lukas.

1 answer

0 votes
Brant Schroeder
Community Champion
January 28, 2021

@Lukáš Šlajferčík 

I was able to get "G-SK_" to work but the moment I added anything after the underscore it failed.  In the search documentation it does not have anything about underscore https://confluence.atlassian.com/jiracoreserver073/search-syntax-for-text-fields-861257223.html

I would suggest submitting a support issue with Atlassian and see if they can provide any insight as to what the issue might be since it is not listed as a special character.

Special characters

+ - & | ! ( ) { } [ ] ^ ~ * ? \ :

Special characters aren’t stored in the index, which means you can’t search for them. The index only keeps text and numbers, so searching for “\\[JIRA Software\\]” and “JIRA Software” will have the same effect — escaped special characters ([]) will be ignored in the search. 

You can use special characters to combine two separate terms into a phrase. Adding a special character between the terms, like in “JIRA+Software” or “JIRA/Software” will return issues that contain the whole phrase “JIRA Software”.

Suggest an answer

Log in or Sign up to answer