/AzureDevOps-RPN-RR-Extension

work item form extension that auto calculates RPN (Risk Priority Number) per work item and stores it in a work item field. Handles both Initial Risk and Residual Risk.

Primary LanguageTypeScriptMIT LicenseMIT

RPN enables a calculated field for computing and storing RPN on your work items.

All defects are created equal. RPN [RPN (Risk Priority Number)] is a calculation of several factors in a defect to help quantify the overall risk of a defect. RPN = (Severity * Occurence * Detection)

Four values are used to calculate RPN (for our use here):

  • Severity
  • Occurence
  • Detection
  • Users Affected

Setup

  1. The first thing you need is to create the fields that will store the RPN value. Create a custom decimal field through the process hub and add it to the work items you want to display RPN data on. NOTE These fields typically are integer or picklist-integer(Example: "1,2,3,4,5,6,7,8,9,10"). However, in specific cases you can make these a string/picklist-string. In the case of using 'picklist-string', the format needs to be <number> - description of number.
    Example:
1 - low probability
2 - medium probability
10 - extra high probability
100 - super mega-high chance of occurence
  1. Navigate to the "RPN" hub on the collection settings admin experience. From here, you must specify the fields that will be used for Severity, Occurence, Detection, Users Affected, and RPN.

Features

Auto calculated RPN field on the form

  • RPN truncates Severity, Occurence, Detection, Users Affected to just be a number.
  • RPN is automatically updated when form is loaded.
  • RPN is automatically updated when any input field is updated.

Recalculate RPN context menu item

  • Update RPN for all selected work items on the backlog or query grid.

Settings hub

  • Specify which fields are used for Severity, Occurence, Detection, Users Affected, and RPN.

Support

Because this extension requires the new work item form, it is only supported on Azure DevOps and the next version of TFS 2018 and above.