Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,022
Community Members
 
Community Events
176
Community Groups

Is there a way to search individual issues along with an issue range within the same query?

Edited

I want to search issues like, PR-104, PR-205, PR-1032 along with issues in the range PR-134 to PR-140 with a single query.

I want to be able to express the range in such a way that it can come in a comma-separated manner along with individual issues.

Something like this:

id in (PR-104, PR-205, PR-1032, PR-134 to PR-140)

I generally list down the relevant issues in Excel. When I have to search them in JIRA, I just concatenate them with a comma in between. It works like a charm! But this ticket range makes it difficult for me to do that. Hence, the query.

2 answers

2 accepted

1 vote
Answer accepted

Hey @Nikhil_Gupta 

this is what worked for me:

issuekey in (PR-104, PR-205, PR-1032) or (issuekey >= PR-134 and issuekey <= PR-140)

Thanks @Michael Wohlgemuth 

That surely would work. However, as I have mentioned in the description, I am looking for a way to have all items comma-separated. 

I generally list down the relevant issues in Excel. When I have to search them in JIRA, I just concatenate them with a comma in between. It works like a charm!

But this ticket range makes it difficult for me to do that. Hence, the query.

In this part here, why aren't there any quotation marks used? How do you address the spaces between each issue?

 

issuekey in (PR-104, PR-205, PR-1032) 
0 votes
Answer accepted

Hi @Nikhil_Gupta,

The syntax specified by @Michael Wohlgemuth is the correct one.

So, what you may need here is a more sofisticated JQL query builder, like this one I've just created for you.

The cells that are supposed to be edited are the ones with light yellow background color.

Multiple issuekey ranges are supported, even those with just one limit (ie: just a FROM or just a TO).

Feel free to make a copy of the spreadsheet.

Hope it helps!

Best regards.

Thanks @Ignacio Pulgar

Appreciate you took the pain to create this spreadsheet for my query. Thank you :)

Yes, this would do the trick. I was looking for some quick trick within JQL itself but I guess that might not be possible.

 

Regards,

Suggest an answer

Log in or Sign up to answer