Source:
<code>private IStatus getReviews(TaskRepository repository, String queryType) throws GerritQueryException { if (repository.getUserName() == null || repository.getUserName().isEmpty()) { if (queryType.equals(GerritQuery.MY_CHANGES) || queryType.equals(GerritQuery.QUERY_MY_DRAFTS_COMMENTS_CHANGES)) { displayWarning("This operation is not allowed as Anonymous user: " + queryType); return Status.CANCEL_STATUS; } else if (queryType == GerritQuery.CUSTOM) { int foundSelf = getSearchText().toLowerCase().indexOf("self"); int foundhasDraft = getSearchText().toLowerCase().indexOf(GerritQuery.QUERY_MY_DRAFTS_COMMENTS_CHANGES); if (foundSelf != -1 || foundhasDraft != -1) { displayWarning("This operation is not allowed as Anonymous user in search field: " + getSearchText()); return Status.CANCEL_STATUS; } } } String queryId = rtv.getTitle() + " - " + queryType; RepositoryQuery query = null; IRepositoryModel repositoryModel = TasksUi.getRepositoryModel(); query = (RepositoryQuery) repositoryModel.createRepositoryQuery(repository); query.setSummary(queryId); query.setAttribute(GerritQuery.TYPE, queryType); query.setAttribute(GerritQuery.PROJECT, null); <START> query.setAttribute(ITasksCoreConstants.ATTRIBUTE_HIDDEN, Boolean.toString(true)); <END> if (queryType == GerritQuery.CUSTOM) { query.setAttribute(GerritQuery.QUERY_STRING, getSearchText()); } else { String st = matchQueryTypeRequest(queryType); query.setAttribute(GerritQuery.QUERY_STRING, st); } if (query.getAttribute(GerritQuery.QUERY_STRING).isEmpty()) { displayWarning("The query string cannot be empty, please enter a value."); return Status.CANCEL_STATUS; } fCurrentQuery = query; GerritTask[] reviews = getReviewList(repository, query); fReviewTable.init(reviews); refresh(); return Status.OK_STATUS; }</code><technical_language>I guess this attribute needed now</technical_language>

Target:
private IStatus getReviews(TaskRepository repository, String queryType) throws GerritQueryException { if (repository.getUserName() == null || repository.getUserName().isEmpty()) { if (queryType.equals(GerritQuery.MY_CHANGES) || queryType.equals(GerritQuery.QUERY_MY_DRAFTS_COMMENTS_CHANGES)) { displayWarning("This operation is not allowed as Anonymous user: " + queryType); return Status.CANCEL_STATUS; } else if (queryType == GerritQuery.CUSTOM) { int foundSelf = getSearchText().toLowerCase().indexOf("self"); int foundhasDraft = getSearchText().toLowerCase().indexOf(GerritQuery.QUERY_MY_DRAFTS_COMMENTS_CHANGES); if (foundSelf != -1 || foundhasDraft != -1) { displayWarning("This operation is not allowed as Anonymous user in search field: " + getSearchText()); return Status.CANCEL_STATUS; } } } String queryId = rtv.getTitle() + " - " + queryType; RepositoryQuery query = null; IRepositoryModel repositoryModel = TasksUi.getRepositoryModel(); query = (RepositoryQuery) repositoryModel.createRepositoryQuery(repository); query.setSummary(queryId); query.setAttribute(GerritQuery.TYPE, queryType); query.setAttribute(GerritQuery.PROJECT, null); if (queryType == GerritQuery.CUSTOM) { query.setAttribute(GerritQuery.QUERY_STRING, getSearchText()); } else { String st = matchQueryTypeRequest(queryType); query.setAttribute(GerritQuery.QUERY_STRING, st); } if (query.getAttribute(GerritQuery.QUERY_STRING).isEmpty()) { displayWarning("The query string cannot be empty, please enter a value."); return Status.CANCEL_STATUS; } fCurrentQuery = query; GerritTask[] reviews = getReviewList(repository, query); fReviewTable.init(reviews); refresh(); return Status.OK_STATUS; }