Why do my OR statements never include the second query?

I've been trying to generate several filters that will return items of one nature OR another, but my queries only ever return the first argument.  The example I'm giving below is using specific arguments from the xray plugin, but I run into the same problem if I'm using standard JQL statements.

project = XXXXXX AND issuetype = Test AND status = Active AND (issue in testsWithoutTestExecution() OR testRunStatus in ("FAIL"))

The intent of the query is to search for active tests that have either not been included in a test execution or have failed a previous execution.  Basically, I want to know which tests are in the project that are active an need to be run.  

The problem is that with this setup, the filter only returns the first argument in the OR statement.  So I will get only the active tests not in a test execution, but not any of the previously failed tests.  

Any insight would be appreciated.

1 answer

1 accepted

0 vote

The query looks correct! Just to rule out the plugin, can you give us a query using standard JQL functions that doesn't work as expected?

Ugh, never mind.  It seems to miraculously be working fine this morning.  Thank you for taking the time to look at it.  

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
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

72 views 0 5
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