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

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer