JSON File Configuration
You can edit a JSON file to create your own opportunity matrix.
An easy way to create a configured opportunity 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
- Opportunity 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 opportunity matrix JSON file, access the Opportunity Management app, and then click on the toolbar. At the top of the Configure Opportunity 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" values in the configuration file are not stored in the database. These are only for information purposes and display in the preview section of the Configure Opportunity Matrix dialog.
- The name (not title) provided in the configuration file is ignored when stored in the database; auto-naming is used for creating a new opportunity 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 opportunity configuration. |
| severity: |
opportunityLevel: 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:opportunityLevel You are only allowed to use the OpportunityLevel 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. |
| opportunityLevels | For each cell, this cannot be different from the opportunityLevel defined in the severity section. |
Invalid Opportunities
An opportunity's configuration must be the same in its actual configuration in the app and its context configuration in the given opportunity matrix. Otherwise, it is an invalid opportunity.
An opportunity can become invalid in multiple ways. Any opportunity is governed by one opportunity matrix configuration. Even if there is no opportunity matrix configuration for any existing opportunities, those opportunities are still governed by the default opportunity configuration. Governing opportunity matrix configurations are unique to the project of the opportunities. This ensures that all the opportunities created under any project use the same opportunity matrix configuration based on that project.
Any opportunity may become invalid if any of the following changes occur:
- There are existing opportunities 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 opportunities 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 opportunities 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 opportunities count is displayed above the Opportunity Heat Map and Breakdown chart in the Summary view.
If you click Fix (x) Invalid Opportunity from the Summary view, the Grid view shows invalid opportunities. 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 opportunity from invalid to valid by changing its configuration, the opportunity is updated in the Summary view and it is removed from the invalid opportunities list in the Opportunities View. Until you change the configuration of an invalid opportunity to make it valid, you cannot change any other properties of that opportunity, and the "Save" action is disabled.
Invalid Configuration Opportunity
If a project has multiple programs and each program has a different configuration, it might be possible that the opportunities created under that project have a different configuration than the program that is set as the Context. In this case, the opportunities are valid opportunities but not part of the current program configuration even though the project of the opportunities 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 Opportunities," the subproject opportunities are valid opportunities but not part of the current context. In this case, these opportunities are displayed as a separate count in "Invalid Configuration Opportunity" 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 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 opportunities correctly in the default view 5X5, you need to map the custom configuration to the default view so that those opportunities 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 opportunity 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 an opportunity 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 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 opportunityLevel of the default configuration's cell is used.