Advanced Searching with operator IN fails if value does not exist

Vasco Barroso August 21, 2012

Hi,

Considering the following scenario:

issue ACT-6 exists

issue ACT-7 does not exist

When, in the Advanced Searching panel, I use the following query:

issueKey IN (ACT-6, ACT-7)

I get the following error:

An issue with key 'ACT-7' does not exist for field 'issueKey'.

This seems to show that I can only search based on values that actually exist.

Also, when using the REST API to perform the same query, I get the following response:

HTTP Response Code: 400
HTTP Response Message: Bad Request
HTTP Response Body: {"errorMessages":["An issue with key 'ACT-7' does not exist for field 'issueKey'."],"errors":{}}

Is there a way to perform this query "a la" SQL ?

In other words, how can I search for issues using the issuekey field without having to worry if the key exists or not ?

Thanks,

Vasco

2 answers

0 votes
Eric Sylvestre July 16, 2014

I've got a case where both issues ACT-6 and ACT-7 exists, but for a unknown reason, I have a message "An issue with key 'ACT-7' does not exist for field 'issueKey'." Any idea of what could be the cause ?

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2012

You can't do it now because JIRA explicitly does that error checking. You might want to raise a feature request to remove the restriction but to me it makes sense!

Suggest an answer

Log in or Sign up to answer