Last active
August 29, 2015 14:18
-
-
Save kenatmxm/6f9dcec930e75ab479b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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