Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenatmxm/6f9dcec930e75ab479b9 to your computer and use it in GitHub Desktop.
Save kenatmxm/6f9dcec930e75ab479b9 to your computer and use it in GitHub Desktop.
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