Skip to end of banner
Go to start of banner

WSJF scripted field

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Problem

You would like to display the outcome of the Weight Shortest Job First equation in a Jira field.

Example WSJF Calculation

Weighted Shortest Job First (WSJF) is a prioritization model used to sequence work for maximum economic benefit. In SAFe, WSJF is estimated as the relative cost of delay divided by the relative job duration.

image-20240325-194719.png

The actual calculation and prioritization are more straightforward than the explanation that brings us to this point. Compare jobs (three features, in this example) for each CoD component and job size using a simple table or spreadsheet (Figure 5). As with estimating stories, larger values reflect higher uncertainty.

image-20240325-194600.png

Solution

This script assumes that there are custom fields for User Business Value, Time Criticality, Risk Reduction, and Job Size and that those fields also has SIL aliases created for them.

if(isNotNull(userBusinessValue) && isNotNull(timeCriticality) && isNotNull(riskReduction) && isNotNull(jobSize)) {
    number costOfDelay = userBusinessValue + timeCriticality + riskReduction;
    return round(costOfDelay/jobSize, 2);
}

  • No labels