JSON File Configuration
You can edit a JSON file to create your own risk matrix.
An easy way to create a configured risk matrix is to export and then edit the default matrix. The default JSON file contains a coded configuration in its proper structure. You can change the matrix's parameters and values within certain limits.
You can update the following matrix parameters:
- Name displayed for the heat map
- Title for the map's configuration
- Labels for the X and Y axis
- Risk level name
- Colors
You cannot update the X and Y numerical values that display in the cells.
If you attempt to change one of the fixed parameters, you will receive an error or your configured matrix will not display properly.
To export the default risk matrix JSON file, access the Risk Management
app, and
then click
on the toolbar. At
the top of the Configure Risk Matrix dialog box, click
Export. This action downloads the default JSON file.
General Considerations
Consider the following when modifying the JSON structure:
- The configuration must be in valid JSON format with the file extension .json.
- You can change only values in the configuration file; you cannot change any keys. If any invalid values exist in the file while creating the matrix configuration from the JSON file, an alert message displays.
- Cell "RPN" and "Risk Rating Goal" cell values can be manually entered.
- The name (not title) provided in the configuration file is ignored when stored in the database; auto-naming is used for creating a new risk matrix configuration.
- The version provided in the configuration is not stored in the database.
- The.CellId provided in the cell data for a custom configuration is ignored and not used for any validation.
Configurable Attributes
Below are the attributes that you are allowed to configure:
| Attribute | Description |
|---|---|
| title | Title of the risk configuration. |
| severity: |
riskLevel: An integer value in ascending order from 1 to 25. backgroundColor: A valid CSS color. This can be the color name or hex code. For example, "Red" or #ff0000." textColor: A valid CSS color. This can be the color name or hex code. For example, "Red" or #ff0000." name: Any string in a supported language. |
| Yaxis: | The Y-axis name and label in a supported language. The nodes are an array of values for the Y-axis categories. |
| Xaxis: | The X-axis name and label in a supported language. The nodes are an array of values for the X-axis categories. |
| Cells: |
For cell size, see Configuration Sizing. Cells:riskLevel You are only allowed to use the RiskLevel available in the severity section. Cells:defaultCellId The default configuration cell ID with which the custom configuration cell is mapped. |
Non-Configurable Attributes
You cannot change any key in the configuration file. In addition, you cannot change the following values:
| Attribute | Description |
|---|---|
| Xaxis.nodes.value | Based on the 1 to 5 incremental order. |
| Yaxis.nodes.value | Based on the 1 to 5 incremental order. |
| Cells.Xvalue | A numeric value that is based on the Xaxis.nodes.value. |
| Cells.Yvalue | A numeric value that is based on the Yaxis.nodes.value. |
| Cells.rpn: | This is a combination of X-value * Y-value. |
Configuration Sizing
Following are sizing considerations:
| Item | Allowed Value |
|---|---|
| Minimum size of the xAxis and yAxix | 3 |
| Maximum size of the xAxis and yAxix | 5 |
| Minimum size of the matrix | 3 * 3 |
| Maximum size of the matrix | 5 * 5 |
| Total cells for the matrix | This is a combination of xAxis * yAxis. For example: 3*3 = 9, 4*4 = 16, and 5*5 = 25. |
| Severity size | Up to 25. |
| riskLevels | For each cell, this cannot be different from the riskLevel defined in the severity section. |
Invalid Risks
A risk's configuration must be the same in its actual configuration in the app and its context configuration in the given risk matrix. Otherwise, it is an invalid risk.
A risk can become invalid in multiple ways. Any risk is governed by one risk matrix configuration. Even if there is no risk matrix configuration for any existing risks, those risks are still governed by the default risk matrix configuration. Governing risk matrix configurations are unique to the project of the risks. This ensures that all the risks created under any project use the same risk matrix configuration based on that project.
Any risk may become invalid if any of the following changes occur:
- There are existing risks with a default configuration and the program of the project/enterprise project is configured with a new configuration that is different from the default configuration.
- There are existing risks with a certain configuration and the program of the project/enterprise project is configured with a new configuration or it removes the existing configuration.
- There are existing risks with a certain configuration and the project is removed from the program or added to a new program.
- The project is added or removed to/from multiple programs. Or a configuration is added or removed for those programs.
An invalid risks count is displayed above the Risk Heat map and Risk Breakdown chart in the Summary view.
If you click Fix (x) Invalid Risk from the Summary view, the Grid view shows invalid risks. You can select valid a configuration from the Matrix Configuration list. After selecting a valid configuration, you can change the value of impact and probability from the list or click the heat map cell to fix the issues. After you fix any risk from invalid to valid by changing its configuration, the risk is updated in the Summary view and it is removed from the invalid risks list in the Grid view. Until you change the configuration of an invalid risk to make it valid, you cannot change any other properties of that risk, and the "Save" action is disabled.
Invalid Configuration Risk
If a project has multiple programs and each program has a different configuration, it might be possible that the risks created under that project have a different configuration than the program that is set as the Context. In this case, the risks are valid risks but not part of the current program configuration even though the project of the risks is part of the current program. Likewise, if a subproject program has a different configuration than its master project program and the master project program is set as the Context with the filter "Project + Sub-Project Risks," the subproject risks are valid risks but not part of the current context. In this case, these risks are displayed as a separate count in "Invalid Configuration Risk" next to the titles of the heat map and breakdown charts in the Summary view. There is no link for the invalid count display on these charts.
Mapping Custom Configuration Cells with Default Configuration Cells
When you set a Context, a risk based on a custom configuration, the heat map and breakdown charts in the Summary view reflect the configuration. When no context is set, to represent risks correctly in the default view 5X5, you need to map the custom configuration to the default view so that those risks are rightly represented in the default 5X5 view. Any cell defined for a custom configuration should define its mapping cell to the default configuration if the risk to be shown in a cell is different from the original cell location in the default 5X5 configuration.
For example, if you want to display a risk at cell number 8 of your custom 3*3 configuration, at cell number 12 of the default 5*5 configuration, you need to add a "defaultCellId" key for cell number 8 in the JSON file with the value 12 ("defaultCellId: 12").
Similar to the heat map, the risk breakdown chart is automatically mapped when a cell is mapped from a custom configuration to a default configuration cell.
If you do not define the defaultCellId in a custom configuration, the location of the x-axis and y-axis value is still used and the riskLevel of the default configuration's cell is used.