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

Accepted Answer
0 votes

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
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

1,819 views 4 6
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