if (queryField instanceof CustomField) {
CustomField customField = (CustomField)queryField;
if(customField.getFieldFormat()==CustomField.Format.BOOL) {
query.addFilter(customField, QueryField.BOOLEAN_TYPE, operator, IRedmineConstants.BOOLEAN_TRUE_SUBMIT_VALUE);
} else {
QueryField definition = customField.getQueryField();
query.addFilter(customField, definition, operator, text.getText().trim());
}
} else {
query.addFilter((QueryField)queryField, operator, text.getText().trim());
}