I have a custom string field (summary) for my issues and would like to create a search that would show all issues where this field does not start with '---'.
I've tried the following:
summary !~ "---" - Unable to parse the text '---' for field 'summary'.
summary !~ "\-\-\-" - Error in the JQL Query: '\-' is an illegal JQL escape sequence.
summary !~ "\\-\\-\\-" - still shows all results
I'm guessing this is because '-' is a special character, which I can't escape for some reason; could someone point me in the right direction?
Jira version is 6.4.12
Thanks
Jira doesnt support the startsWith operator or searching for dashes.
If you have SR, you can use issueFieldMatch to search for fields that starts with some text. Not sure if it supports searching for dashes though.
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_issuefieldmatch
Is there a list of special characters that cannot be used in the search?
So far I've tried '~', '@', '#', '$', '%', '^', '&', '-', '+', '=' none of which work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Restricted words and characters are listed here:
You'll notice that there's no mention of "-" since it falls outside of the list of restricted characters and accepted characters (if it were officially restricted, you'd be able to escape to search on it)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah, I've found that page and also this one:
https://confluence.atlassian.com/jiracoreserver073/search-syntax-for-text-fields-861257223.html
Their example (present in both pages) simply does not work
summary ~ "\\[example\\]"
is actually equivalent to
summary ~ "example"
which does not work for me at all :(
I guess they strip all the non alphanumeric characters from the search when ~ operator is used, ie there is no way to do what I want
[Edit] This is actually a known bug - JRASERVER-66244
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.