Created
November 13, 2018 14:21
-
-
Save chuikoaleksandr/fed948d283a625346f512e2a28ea5d92 to your computer and use it in GitHub Desktop.
Jira MyGroovy simple validator comment example
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
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