In this example, we'll report on the number of times a Jira issue was reopened. You can easily adapt this example to report on any particular Jira status or statuses relevant to your workflows or processes.

Configuring Your Jira Instance

Create a new ScriptRunner custom field ("Scripted Field") in Jira, called "Reopen Count" (or whatever status you'll be tracking). Select Number Searcher for the "Search Template" option for this field, since the field will be returning numeric values.

Select your Jira projects, project categories and filters of interest. Or click on the JQL tab in that field to enter a command using Jira Query Language (JQL).

Issue Field

Reopen Count

Select the name of the new ScriptRunner custom field just added.

Date Basis

Resolution Date

Select the date on which each issues' reopen count will be plotted. You might alternatively choose "Created Date", or a custom date field.

Chart Type

Select the Column Chart

Now click on the Run Report button to create your report.

We see a clear report of issue reopen counts across the selected time period.

To better understand what type of issues in this project were most frequently reopened, let's go back to the report configuration page and add Issue Type (Historical) to the Segment By field to break down the results.

Here's what the report configuration now looks like:

Running the report again, we now get the same results segmented by issue type: