Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to query by ticket number range

nathanwendling
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

11 votes
Answer accepted
Deleted user June 9, 2017

Use the issuekey:

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

nathanwendling
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 12, 2019

Thanks

Russell Warren
Contributor
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
Contributor
October 11, 2019

moved to answer to clarify

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events