我在第8行和第10行遇到意外的令牌错误。任何帮助将不胜感激。
谢谢。
if (! underlyingIssue) {
// we must be on create screen and there is no reported set on the issue yet
return
}
def fieldExemption = getFieldById(getFieldChanged())
def fieldException expiration (must be <= 364 days) = getFieldByName("Exception expiration (must be <= 364 days)")
if (fieldExemption.getValue() && underlyingIssue.reporter.name == "reporter") {
fieldException expiration (must be <= 364 days).setRequired(false)
} else {
fieldAException expiration (must be <= 364 days).setRequired(true)
}