Hey
Im trying to search for "-" in a custom text field. But this just resolves in a error:
Search: <custom text field> ~ "-"
Result: Unable to parse the text '-' for field '<custom text field>.
Can anyone help me. Th eproblem is that this is a mandotory field. But sometimes users just put "-".
I now want to find these issues.
"-" is a special character and you would need to escape it using a backslash. You can try the search with "\-" instead.
For more information, you can refer to this section of documentation: https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches#PerformingTextSearches-Escapingspecialcharacters:\or\\
"\-" gives me this error:
Error in the JQL Query: '\-' is an illegal JQL escape sequence. The valid escape sequences are \', \", \t, \n, \r, \\, '\ ' and \uXXXX. (line 1, character 26)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Per the documentation that was linked to, when doing advanced search you need to use two slashes, i.e. column ~ "\\-"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I - unfortunately - found the answer:
+ - & | ! ( ) { } [ ] ^ ~ * ? \ :
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.