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.
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 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”.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.