JIRA query for string search

I need to know how do I write a JIRA query to search for all the issues that "does not" have a particular string in "acceptance criteria". for e.g.if any issues passed CCB I update that JIRA issue in "acceptance Criteria" as "CCB Approved", but there are several other issues that does not have "CCB Approved" value in acceptance criteria or this field it blank. I need to find out the list of those other issues.

Currently I have this query:

project in (abc, xyz) AND labels = sdf AND status in (Open, External, InProgress, Reopened, Validated, InTest, ECCB, Deferred) AND "Acceptance Criteria"  !~ "CCB Approved "

This doesn't result in any issues

2 answers

0 vote

I suspect some of your issues do not have the "Acceptance Criteria" field at all.

In English, you are asking the question for each issue:  Does this issue have an "Acceptance Criteria" of "CCB Approved".  What confuses most people is that they think there are two answers to that question, where in real life (and Jira) there are actually three:

  1. Yes
  2. No  
  3. The question does not make sense because the field does not exist for this issue.

I think you'll find your query is dropping the issues where the field is not valid.


I would suggest to check on each step.

First try with: project in (abc, xyz) AND "Acceptance Criteria"  !~ "CCB Approved " -> Any Result?

Then include another qury string and see the difference.

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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

790 views 2 19
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