Skip to main content

Define Risk Work Item Types

Open your risksheet.json configuration file and locate the dataTypes section. Specify multiple work item types for the risk level using comma-separated type IDs:
{
  "dataTypes": {
    "risk": {
      "type": "risk,issue,hazard"
    }
  }
}
This configuration allows users to choose from Risk, Issue, or Hazard types when creating new risk items.

Add an Item Type Column

Create a column that displays the work item type and provides a dropdown selector during creation:
{
  "columns": [
    {
      "header": "Item Type",
      "bindings": "type",
      "id": "itemType",
      "level": 2,
      "minWidth": 150
    }
  ]
}
When users create a new risk item, they’ll see a dropdown menu showing all configured types:
Once a risk item is created, its type cannot be changed through RISKSHEET. Users must delete and recreate the item with the correct type if needed.
When displaying multiple risk types, you may need different link roles for upstream columns depending on the risk type. This requires enabling link role compliance checking. Add this property to Administration > Configuration Properties:
nextedy.risksheet.checkLinkRoleCompliance=true
Configure item link columns with comma-separated link roles that correspond to your risk types:
{
  "header": "Item/Func",
  "type": "itemLink",
  "level": 1,
  "id": "item",
  "typeProperties": {
    "linkRole": "assesses,relates,impacts",
    "linkTypes": "systemrequirement,softwarerequirement"
  }
}
The order of linkRole values must match the order of type values in your dataTypes.risk configuration:
  • First link role (assesses) → First risk type (risk)
  • Second link role (relates) → Second risk type (issue)
  • Third link role (impacts) → Third risk type (hazard)

Example Configuration Flow

Risk IDTypeLink Role Used
RSK-101Riskassesses
RSK-102Issuerelates
RSK-103Hazardimpacts

Verification

After configuration:
  1. Create a new risk item - you should see a dropdown with all configured types
  2. Select different types and create items
  3. Check linked items in Polarion’s Links & Revisions tab - verify that the correct link role was applied based on the risk type

See Also

KB ArticlesSupport TicketsSource Code
  • risksheet.json
  • RisksheetProjectProperties.java
  • PolarionAppConfigManager.java
  • AppConfig.ts
  • RisksheetViewServlet.java