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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 6 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

249 views 4 4
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