How to build a query on finding the number of times a issue got re-opened?

sudharson Rengabashyam September 6, 2012

Hi,

I am able to build a query for finding issues that currently have or previously had, a status of Reopen.

Ex: status was in(Reopened).

I need help in build a query in finding the number of times a issue got re-opened?

Sudharson

5 answers

2 votes
SimonS
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.
September 6, 2012

Hi sudharson,

JQL is only meant to return issues - it can't tell you how many times an issue was re-opened by default. You will have to go into the issue history for that.

However, you could add a field to the issue to track the number of times that an issue got reopened, and have that value increment each time the issue is reopened. This is possible with the JIRA Misc Workflow Extension:

https://marketplace.atlassian.com/plugins/com.innovalog.jmwe.jira-misc-workflow-extensions

which allows you to Increase the value of a field (which would work perfectly for this case).

-Simon

sudharson Rengabashyam September 9, 2012

Thanks Simon. Much Appreciated..!

I had a look at the URL for JIRA Misc Workflow Extension.

It looks, I need to Install the plugin by copying the JAR to WEB-INF/lib inside your JIRA web application and restart JIRA.

Kindly note, i am not a administrator. Hence, I am having the limitations of implementing it.

I am having user level privellages. To track my project very closely, I need to build a query to find the number of times the JIRA got reopened.

Do we have any other workaround.

Regards

Sudharson R

SimonS
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.
September 9, 2012

I'm afraid that you won't be able to write a query to find this unless you customize your JIRA instance in some way, either with the plugin or by some custom code. JIRA simply does not have the logic in place to track the history of workflow transitions and sum them.

0 votes
Bloompeak Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 29, 2020

Hi,

For cloud, you can use Status Time add-on. It generates status count report in addition to status time report.

If you are looking for a free version, you can try Status Time Free.

StatusCount.gif

0 votes
Zoryana Bohutska _SaaSJet_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 20, 2019

Hi there

Time in status for Jira Cloud by SaaSjet shows a number of times an issue was in some status for Jira On-Demand users.
Also, this plugin calculates:
- time in status - automatically determines for how long your issues had been staying in each status;
- transition count - shows how many times an issue went from status to status.

About other reports, you can read at the Atlassian Marketplace.

Moreover, there are features that allow you to view reports as charts and to export your data.

0 votes
Tyler Quillen March 28, 2018

You can have a field that is not shown on the screen of the issue on create, edit, etc. but update it when it goes through a transition of "reopen" or something equivalent. Then you can query for that field having the specific value. 

This is only a half solution, as it can check if something has been reopened at least one time and is easy to implement.

As for a full solution, either using a plug in or writing a custom script that can increment a counter on a field is your only real solution.

0 votes
Donya Sabaghi January 22, 2013

Hey Simon,

We are having a similar issue where we want to have a first glance at how many times a cases was reopened without having to go through the history.

What you mentioned above could help us out greatly, but we are using the cloud based version of Jira. Is there anything similiar to JIRA Workflow Entension that we can use?

Renjith Pillai
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.
January 22, 2013

Workflow flow extentions are available on OnDemand. Please raise a support request to get it enabled for you.

EIDT: You can do it yourself - https://confluence.atlassian.com/display/AOD/Disabling+or+Enabling+a+JIRA+Plugin

Suggest an answer

Log in or Sign up to answer