I have a need where I need to get the list of issues remotely via their key. If one of the key corresponds to a deleted issues, entire JQL fails.
JQL: key in ("PROJ-1", "PROJ-5)
I also tried (with no luck)
key = "PROJ-1" or Key = "PROJ-5"
key in ("PROJ-1") OR key in ("PROJ-5")
I would expect that it should ignore the key that doesnt exist (like SQL). But in this case, entire JQL fails.
-Shailesh
Too late to post a comment on the thread, but it can be helpful to someone. So here's my observation -
I faced the same issue while making JIRA API calls using JQL. Where it should have returned results for valid keys, but it returned an exception if any issueKey was invalid.
However, I noticed something strange. When we make the same JQL query and use lowercase for the keys, e.g "abc-1" instead of "ABC-1", it gives results instead of the exception.
Never too late to save the day to the others! Thanks for your workaround!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the workaround! Better late than never. ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you've got to be kidding me
great answer, thanks Neha!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works perfect, what a bizarre bug/feature! Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
convert comma separated list into lower case then it will work properly
It will return non deleted key in result.
use like as below and try any one
JQL: key in ("proj-1", "proj-5")
JQL: key in (proj-1, proj-5)
I hope you will get answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How does the query fail? Does it give an exception, or just no results? I would also expect Jira to ignore the non-existing issue key.
This might be a bug in Jira. I would suggest that you file a issue at support.atlassian.com to check with Atlassian's support team.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No Exception, It comes back with appropriate key not found message. I would except result containing all the found ones.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How does the query fail? Does it give an exception, or just no results? I would also expect Jira to ignore the non-existing issue key.
This might be a bug in Jira. I would suggest that you file a issue at support.atlassian.com to check with Atlassian's support team.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.