Skip to main content

Understanding Risk Deletion Failures

When you attempt to delete a risk item and encounter an error popup, the issue typically stems from one of three causes:
  1. Imported Work Items - Risks imported via Polarion’s work item importer have different deletion behavior than manually created risks
  2. Workflow Configuration - Missing or misconfigured reject/remove actions in your Polarion workflow
  3. Remove Strategy Settings - Incorrect removeStrategy configuration for your risk data type
diagram

Check Browser Console for Errors

Before troubleshooting configuration, capture the exact error message:
  1. Press F12 to open browser developer tools
  2. Click the Console tab
  3. Attempt to delete the risk item again
  4. Look for error messages in red - copy the full error text
Common error patterns:
Error MessageRoot CauseFix
Workflow action 'reject' not foundMissing reject action in workflowAdd reject action to workflow
Invalid status transitionrejectedStatus not allowedUpdate workflow or rejectedStatus
Cannot delete itemremoveStrategy mismatchCheck removeStrategy configuration

Configure Remove Strategy

Edit your risksheet.json configuration to set the correct removal behavior:
{
  "dataTypes": {
    "risk": {
      "type": "hazard",
      "removeStrategy": "delete",
      "rejectedAction": "reject",
      "rejectedStatus": "rejected",
      "rejectedResolution": "invalid"
    }
  }
}
Key Properties:
  • removeStrategy - Set to "delete" for permanent removal or "reject" to use workflow actions
  • rejectedAction - Workflow action name to execute when deleting (e.g., "reject", "remove")
  • rejectedStatus - Target status after deletion (e.g., "rejected", "deleted")
  • rejectedResolution - Resolution value to set (e.g., "invalid", "withdrawn")
Work items imported through Polarion’s Excel importer may have incomplete workflow state initialization. If manually created risks delete successfully but imported risks fail, the issue is workflow-related rather than configuration-related.

Verify Workflow Configuration

For Polarion 2310 and later, ensure your workflow includes the reject action:
  1. Navigate to ⚙️ AdministrationWorkflow
  2. Select your risk work item type (e.g., Hazard, Risk)
  3. Verify a reject action exists (or matches your rejectedAction setting)
  4. Confirm the rejected status exists and is reachable from current states
  5. Check that transition rules allow the reject action
If the reject action is missing:
  1. Add a new action named reject
  2. Configure it to transition items to the rejected status
  3. Set the resolution to invalid (or your configured rejectedResolution)
  4. Save and restart Polarion server
Create a new risk manually in RISKSHEET and try deleting it. If this works but imported risks fail, the workflow configuration is correct - the imported items have incomplete state data. Contact support to investigate import-specific initialization.

Handle Different Deletion Behaviors

Nextedy RISKSHEET supports multiple deletion patterns depending on ID format:
Deletion PatternAPI CallBehavior
Standard DeletionDELETE /item/PROJ-123Permanent removal (removeStrategy=delete) or reject workflow (removeStrategy=reject)
Task UnlinkingDELETE /item/PROJ-123;*Removes task link only, preserves the work item
Cross-ProjectDELETE /item/projectB/PROJ-456Deletes item from different project (requires cross-project permissions)

Verify the Fix

After updating configuration and workflow:
  1. Refresh the RISKSHEET page (clear browser cache if needed)
  2. Select a risk item that previously failed to delete
  3. Click the delete button or press Delete key
  4. You should now see either:
    • A confirmation dialog before deletion (if configured)
    • The risk item removed from the grid
    • Status changed to “rejected” (if using reject workflow)
  5. Check the browser console - no error messages should appear
If deletion still fails, check the console error and verify that:
  • rejectedStatus value exists in your workflow’s allowed statuses
  • Current user has permission to execute the reject action
  • The risk work item type matches the configured dataTypes.risk.type

See Also

Support TicketsSource Code
  • PolarionAppConfigManager.java
  • RisksheetDataStorage.java
  • GetSetUtil.java
  • DefaultTraceProvider.java
  • AppConfig.ts