Skip to end of banner
Go to start of banner

Create an issue score custom field (Team)

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

« Previous Version 4 Next »

int score = 0;

if(isNotNull(assignee)) {
    score += 10;
}
if(isNotNull(dueDate)){
    score += 10;
}
if(isNotNull(description)) {
    score += 10;
}

if(score < 10) {
    return "Bad";
}
else if(score >= 10 and score < 20) {
    return "OK";
}
else if(score >= 20 and score < 30) {
    return "Good";
}
else {
    return "Great";
}
  • No labels