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.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 _Wolge_
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nikhil_Gupta,
The syntax specified by @Michael Wohlgemuth _Wolge_ 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.