def customField = getFieldByName("发现阶段") def customField_oa = getFieldByName("OA单号") if(customField.getValue()=="功能测试" || customField.getValue()=="SIT测试") { customField_oa.with{setReadOnly(true)} }