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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

143 views 1 3
Join discussion

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