Created
April 27, 2022 10:18
-
-
Save nickname55/8bb48699430afab6d2f6db58623a256c 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
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.fields.CustomField | |
def date2 = new Date() //.plus(3) | |
def dateField = getFieldById(fieldChanged) | |
def dateValue = dateField.value as Date | |
dateField.clearError() | |
if (dateValue < date2) { | |
dateField.setError("Date cannot be earlier than (${date2})") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment