Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function shortenPriorityText(text) {
Logger.log("[METHOD] shortenPriorityText");
switch(text) {
case "Critical = Bug is already producing consequences":
return "CRITICAL";
case "High = Consequences will come with delay":
return "HIGH";
case "Regular = Needs to be done":
return "REGULAR";
case "Low = Should be done":
return "LOW";
default:
return "BUG";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment