意外的令牌字段@错误

时间:2017-01-09 15:09:37

标签: groovy

我在第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)
}

0 个答案:

没有答案