Visualizing a Risk Matrix


We wanted to get some visibility into the distribution of risk across our projects and issues. A previous example showed how Arm and Adaptavist built a grid of inter-related issues for program increment planning for SAFe. Here, we see how a few simple tweaks to labels and what fields you pull data from can produce a very different report, leveraging much of the same code.

New script output

Generate a REST Endpoint with ScriptRunner

There are two ways to generate a visual from data using VisualScript: use the built-in Script Editor or connect to a REST endpoint. Using the built-in Script Editor will help you translate data into diagram markup using JavaScript and the VisualScript SDK.

If you already have a preferred scripting language and method, you can easily do the same outside of VisualScript using any language and any hosting solution. When you do so, you'll just need to expose a REST endpoint that returns markup that a VisualScript gadget can connect to.

In this case, similar to the PI planning project, our partner Adaptavist used ScriptRunner to create a REST endpoint.

When building the model of the data we modified the column and row headers to represent impact and probability. Then, we pulled out the custom fields for impact and probability. Once we translated this model to VSON markup, we were ready to build a visual.

Risk matrix endpoint

Add a Gadget to the Dashboard

Our ScriptRunner REST endpoint takes a single parameter, project key, and with this single parameter we can get a easy to comprehend view of where clusters of risk, or lack of risk, exist for our project.