Team Dashboards for Jira

Gerald Schmidt
Go City Engineering
6 min readMay 16, 2022
Screenshot of a team dashboard for Jira Service Management. The first row depicts ticket actions; the second focuses on customer service feedback scores; and the third covers service level agreement outcomes.
Team dashboard for Jira Service Management

As developers we tend to spend a lot of time in Atlassian Jira. Many of us also spend more time than we should on team dashboards. If both of these descriptions fit you, chances are you have looked up Jira’s built-in reports to see what is available out of the box. You may well have come away disappointed. Jira offers a limited range of inputs and little room to customise how they are shown in these reports. You are likely to find a chart that features some of the data points that interest you, but probably not all.

This lack of inputs and presentation choices is one problem, but there is another. It seems to me that the intended users of these reports are not developers. What makes me think so? Create a Jira report, and the default “statistic type” is the “Assignee”. It’s all about the individual contributor. Who resolved the most issues? Never mind that some of the people appearing in that pie chart left the company long ago. Open Jira Service Management, and you will similarly find that reports foreground the top performers; who garnered the highest customer satisfaction scores; and also who holds the fewest overdue tickets. Developers have no more interest in this than they do in Employee of the Month schemes. They sense that excessive emphasis on individual contribution works against the team.

If you would like to create your own Jira team dashboards in Grafana, focusing on insights that teams actually care about — the relative amount of toil versus innovative work being done, for example — read on.

The proposal

The suggested approach is simple: teams define the data points they want from Jira. The Jira Metrics service queries Jira and allows Prometheus to fetch the results. The teams then build Grafana dashboards based on the time-series data stored in Prometheus. The configuration is submitted in Git, as are the dashboards.

Jira Metrics deals with three use cases:

  • developers can submit custom Jira Query Language (JQL) queries (e.g. show all issues belonging to a particular epic that are in progress) and register Prometheus counters, gauges or histograms
  • they can also specify the name (technically, the short “key”) of their Jira board to retrieve a standard set of metrics (e.g. a breakdown of in-progress tickets by submitter)
  • for Jira Service Management queues, they can add one or more queues and Jira Metrics will gather SLA data, customer satisfaction scores, and so on

The configuration is submitted as YAML and validated when the service spins up, so malformed or invalid input will not take down a working Jira Metrics instance.

Custom queries

This is how developers might express custom JQL queries in code:

server: acme.atlassian.net
interval_seconds: 300
metrics:
- query: 'project = "ACME" AND "Epic Link" IN ("Tech Debt","Incident","Defects","Business as Usual") AND resolved > -2w'
metric_name: acme_completed_rework_issues
metric_type: gauge
metric_help: 'ACME completed rework'

Note that the “query” property takes JQL strings familiar from the Advanced Issue Search screen. The value prepared for consumption by Prometheus is the total number of issues matching this query. Jira Metrics will prepend “jira_metrics” to the metric name. The usual naming conventions apply. Here it is worth stating that we are counting issues, not adding the story point estimates for all matches.

Unlike Prometheus staples such as 4xx or 5xx response counts, these metrics are slow-moving targets, so retrieving data every five or ten minutes is if anything more than is needed.

If gathering the data you are after in this way feels like too much work — especially considering you still need to build a dashboard for your custom metrics — consider submitting your board to Jira Metrics instead.

Jira Software boards

This screenshort shows a dashboard in three rows. The top row focuses on the number of stories, the middle row on responsive, “business as usual” work versus planned work and the third organises planned, in-progress and completed work by reporter.
Templated Jira Software dashboard

The template for boards focuses on three areas: firstly, it gathers metrics on stories in preparation, in progress and recently completed; secondly, it distinguishes between work and rework (whether we conceive of the latter as “business as usual”, “incident response” or “reactive”). Finally, it breaks down tickets by reporter.

The properties your team would fill in are these:

boards:
- name: ACME
in_progress_labels: '"in progress","pending close"'
in_preparation_labels: '"backlog","selected for development"'
business_as_usual_epics: '"business as usual","tech debt"'
iteration_length_weeks: 2

There are nearly as many labelling conventions as there are teams using Jira boards, so it seemed safest to let the user specify which labels represent which stage of your workflow. Some teams are “three swimlanes” purists. Others start with five columns and debate the benefit of adding a sixth. These dashboards should provide value to both groups.

Jira Service Management queues

The screenshot shows a dashboard in three columns. The top row focuses on ticket numbers, the middle row on customer satisfaction scores and the third and final row on tickets in breach of their SLA.
Templated Jira Service Management dashboard

The three rows of the templated dashboard for Jira Service Management correspond to ticket activity, customer satisfaction (CSAT) and service level agreement (SLA).

Ticket activity focuses on tickets opened, completed and as yet unassigned, as well as the overall count of open tickets. The time graph is paired with a week-on-week “stat” panel (in this case the number of open tickets has inched up by one) and a green-amber-red gauge stating whether the current number of open tickets is in the desired range, just off or far above what it should be. Each queue has its own dynamic, so teams will want to adjust these thresholds.

The CSAT row is also split into a time graph, a week-on-week “stat” and a gauge. If you find (as we did) that many users award five out of five or say nothing at all, we could add the rate of scores being submitted as an additional metric worth following.

The row dedicated to SLA consists of two pie charts: the first breaks down tickets that are in breach by submitter (but not assignee); the second highlights the relative number of tickets within and in breach of SLA.

Queues are if anything better suited to templated dashboards than Kanban boards. Tickets are or are not in breach of their SLA; Jira Service Management gathers CSAT feedback automatically; the number of open or unassigned tickets is often a meaningful data point.

As a result, the configuration teams need to supply is minimal:

queues:
- name: ACMESD
time_zone: UTC

As before, the focus is on who submitted a ticket, not on the individual processing it. It is useful for the team to know whose submissions are most likely to be overdue. This could signal, for example, that one reporter pushes very firmly for timely completion, possibly edging out equally important issues submitted by less vocal reporters. We are building a team dashboard, and its role is to help the team serve its customers better.

How does the timezone help? It allows Jira Metrics to mark issues coming in at night or over the weekend as out-of-hours. For our service desk that means we can send out-of-hours issues from Prometheus (via Alertmanager) to PagerDuty. Another built-in metric flags P1 incidents reported to the service desk. Alertmanager sends them straight to the platform team’s first responder.

We decide how to respond to the metrics Prometheus obtains from Jira Metrics. We can build an alerting chain, but we can also divert the alert to a panel in Grafana or ignore it altogether.

This flowchart shows how the Jira Metrics service pulls data from two Atlassian Cloud services: Jira Software and Jira Service Management. It exposes metrics scraped by the Prometheus time-series database. In order to draw team dashboards, Grafana pulls data from Prometheus. At the same time, Prometheus itself pushes data to Alertmanager and potentially PagerDuty for alerting.
Jira Metrics request flow

The dashboards

Templated dashboards lend themselves to parameterisation. If you have five engineering teams and two service desk teams, you only need to install two Grafana dashboards and add the seven project names to them.

As with most dashboards, it helps to share them as widely as is responsible within your organisation. If you work remotely, place them behind your corporate identity provider (be that Google, Microsoft or any other). If you find yourself in an office equipped with wall-mounted screens, place the dashboards on rotation there.

If a colleague from Finance asks you about the difference between work and rework, you may find yourself drawn into a conversation about operational expenditure, capital expenditure, EBITDA and the cloud. You may even find that Finance use Jira, too. If so, you have every reason to add a sixth name to your templated Jira team dashboard.

Source

If you’d like to create Jira team dashboards, you are welcome to clone github.com/gocityengineering/jira-metrics. You can use any Kubernetes cluster (“minikube” will do) to deploy the application. Configure Prometheus to scrape the application and use the two JSON templates in the folder dashboards to set up your dashboards in Grafana.

--

--