search excluding a word

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

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
Community showcase
Published Tuesday in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

182 views 3 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you