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 edited

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 3 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 edited

moved to answer to clarify

Suggest an answer

Log in or Sign up to answer
TAGS
Atlassian, Team '25 Europe, Atlassian conference, AI-powered teamwork, Atlassian events, keynote speakers, Barcelona tech conference, Atlassian Williams Racing, Carlos Sainz, Jenson Button, Mike Cannon-Brookes, Anu Bharadwaj, Atlassian Rovo

Atlassian Williams Racing is coming to Team '25 Europe 🏎️

Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.

Register now
AUG Leaders

Atlassian Community Events