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

0 vote
Volodymyr Krupach Community Champion Dec 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 Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,231 views 6 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot