Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL search by issueId fails if issue key LIST has a deleted issue

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

4 answers

1 accepted

7 votes
Answer accepted

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!

Thanks for the workaround! Better late than never. ;-)

you've got to be kidding me

 

great answer, thanks Neha!

Works perfect, what a bizarre bug/feature! Thanks

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.

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.

No Exception, It comes back with appropriate key not found message. I would except result containing all the found ones.

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.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you