Forums

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

Unable to search for \- in text fields

Sander Spoelstra
Contributor
August 7, 2019

Custom fields on screens without any content will not be shown, even when explicitely present on the view screen of a ticket. Although it's logical to hide empty custom fields, there is one specific field I want people to be able to always see and they should be able to edit it, but never make it mandatory.  Adding it to a workflow-step as mandatory field is therefore not desirable.

In this case, I've added a custom text field and gave it a default value -. Now this works well: the field is always shown and editable. 

However, I can't seem to search on this field with jql. When searching with the basic view, I get a parsing error:

2019-08-07 19_16_03-Issue Navigator - JIRA Keylane.png

When escaping the character with a backslash, \- , I get 0 results while I would expect hundreds.

If you use the advanced search option, I either get 0 results (project = XXX AND YYY ~ "\\-") or an error:

2019-08-07 19_20_29-Issue Navigator - JIRA Keylane.png

Can someone help with solving this issue? Should I simply give a different default value to solve the issue or is there a way to search on the - character?

 

0 answers

Suggest an answer

Log in or Sign up to answer