How to query by ticket number range

nathanwendling June 9, 2017

Trying to figure out how to get all tickets in a range, e.g. if the tickets are for project abc and issue numbers 400-410 all need changes, can I at least query a list where I only see abc-400, abc-401, ..., abc-410?  something like 'project="abc" AND *unknownFieldName* > 409 AND *unknownFieldName* < 411 ORDER BY *unknownFieldName* DESC' ?

3 answers

1 accepted

9 votes
Answer accepted
Sebastien Jacques
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2017

Use the issuekey:

issuekey > ABC-409 AND issuekey <= ABC-411

nathanwendling June 9, 2017

Thanks, didn't realize that those were allowed on strings in JQL, after all the trouble I had earlier trying to use ~ on things.

js-shm April 12, 2019

Thanks

Russell Warren May 1, 2019

This does not work (at least currently) if one of the keys used n the limit does not exist.

For example:

issueKey > ABC-409 AND issuekey < ABC-411

will not work at all if either one of `ABC-409` or `ABC-411` doesn't exist either (has not been created yet, or has been deleted).

Like # people like this
0 votes
Mark H_ Williams February 20, 2020

I switched the AND to OR and it worked

0 votes
Lynne Randolph October 11, 2019

moved to answer to clarify

Suggest an answer

Log in or Sign up to answer