Forums

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

JIRA Select Random Tickets In Query

Michael Trimm
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 30, 2018

How do I select a random ticket out of a subquery set of results?

 

I want to be able to filter by story type and creation date to select a random ticket.

 

Thanks,

Michael

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 30, 2018

Hello,

Do you want to select a random issue via a JQL query? If so then it is not possible. JQL does not have such a function.

Michael Trimm
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 30, 2018

Thanks for the quick reply, thats what I suspected. Looks like its time to use the API and post-process the data. 

 

Thanks Alexey, 

Michael

Tim Ward
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!
July 10, 2020

in SQL you can do an order by newid() to do this. Pity there isn't a JQL equivalent.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events