The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

JQL: How to write a JQL to find issues status changed to (e.g. Closed) X number of times

Alexey Sao
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!
March 20, 2020

Hi. 

Plz, help me - How to write a JQL to find issues status changed to (e.g. Closed) X number of times? 

I need to get certain number of times (e.g. 10) status was change to ... (not interested in period, number of times only)

Thank you. 

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Jack Nolddor [Sweet Bananas]
Atlassian Partner
March 20, 2020

Hi,

What about to create a Scripted field and use it within a native JQL?

Check No. of Times In Status field by Script Runner for Jira

 

Regards

Alexey Sao
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!
March 20, 2020

Good idea, will try. 

Thank you

2 votes
Answer accepted
Thomas Schlegel
Community Champion
March 20, 2020

Hi @Alexey Sao 

this is not possible. You can just query, whether an issues status changed to closed at least one time.

If you want to query the exact number, you have to define a custom field of type number and increment this number in your workflow transition every time the issue is closed (or whatever you want to count). But of course, this will not count the past transitions.

Meissam Rezapuran
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!
November 2, 2023

JQL SYSTEM