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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,861 views 12 18
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
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