search excluding a word

Chris Purser December 23, 2016

This JQL stuff is sometimes so awesome and so many times completely and totally non-intuitive.

There seems to be no way to do a search that simply excludes a single word even though the instructions suggest it should work, but it doesn't.

Examples that all fail:

project = HLP AND text ~ "create" -build

project = HLP AND text ~ -build

project = HLP AND text ~ "create" NOT "build"

project = HLP AND NOT text ~ "build"

and several others that should seem to work but don't according to:

https://confluence.atlassian.com/jirasoftwarecloud/search-syntax-for-text-fields-764478343.html

 

1 answer

0 votes
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 23, 2016

Hi Chris,

You were almost there:

1) project = HLP AND text ~ "create" -build 
shold be:
project = HLP AND text ~ "create -build"
 
2) project = HLP AND text ~ -build
works fine for me
 
3) project = HLP AND text ~ "create" NOT "build"
I think you expect all with "create" excluding with "build" and this is the first sample
 
4) project = HLP AND NOT text ~ "build"
The second sample works for me

Suggest an answer

Log in or Sign up to answer