Skip to content

Instantly share code, notes, and snippets.

@chuikoaleksandr
Created November 13, 2018 14:21
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 chuikoaleksandr/fed948d283a625346f512e2a28ea5d92 to your computer and use it in GitHub Desktop.
Save chuikoaleksandr/fed948d283a625346f512e2a28ea5d92 to your computer and use it in GitHub Desktop.
Jira MyGroovy simple validator comment example
import com.opensymphony.workflow.InvalidInputException
def MESSAGE_ERROR = "You must enter a comment."
if(!transientVars["comment"]) {
throw new InvalidInputException("comment", MESSAGE_ERROR)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment