if you want to search for "Terms and Condition" use
~"\"Terms and Condition\""
That will remove the keyword 'and' actually and return > 1 issues. The result I expect is either
exactly == 1 issue, or zero if the issue with that exact summary doesn't exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Funny, I was 100% I tried that (that's why I linked to the documentation).
Sometimes it takes a second person to clear things up :).
Edit: Ok now I realised, the search yields different results if Conditions has a trailing s or not. I'm starting to think about stemming here.
~"\"Terms and conditions\"" will return > 1 issues. Each one having the phrase in it. E.g
xxxx terms and conditions
terms and conditions xxxx
xxxx terms and conditions xxx
How can I limit to only the exact phrase without surrounding words?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CONTAINS operator (~) does what it should: it shows issues that contains a certain phrase. So no solution out of the box.
Not sure if it works with script runner plugin there is a JQL function issueFieldExactMatch which could fit your needs. But I haven't tried this function yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using the REST API when the key is unknown, this method will yield unexpected results unfortunately. But I understand, if ithat's how the CONTAINS work, there's not much to do.
Is the only option to narrow down the results to use more fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
summary ~"\"Terms and conditions\"" and summary!~"\" Terms and conditions \""
note the leading and trailing blanks in the second phrase
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.