<%@ page import="com.atlassian.jira.issue.fields.FieldRenderingContext, com.atlassian.jira.issue.search.SearchException, com.atlassian.jira.issue.search.SearchResults, com.atlassian.jira.issue.search.util.QueryCreator, com.atlassian.jira.web.action.issue.IssueNavigator, com.atlassian.jira.web.component.IssueTableLayoutBean, com.atlassian.jira.web.component.IssueTableWebComponent, java.util.List" %> <%@ taglib uri="webwork" prefix="webwork" %> <%@ taglib uri="sitemesh-page" prefix="page" %> 100%

<%-- If we have used a 'smart search' then inform the user of this fact, and allow them to query again without smart search --%> <% if ("true".equalsIgnoreCase(request.getParameter("usedQuickSearch"))) { %>

<%-- resin has a bug where you can't get URL parameters multiple times, so retrieve it here, and pass it around --%>

" >
" onClick="document.smartquery.submit(); return false;">.
<% } %>

<%-- Set this so that it can be used further down --%> <% final IssueNavigator issueNavigator = (IssueNavigator) request.getAttribute("issueNavigator"); try { final SearchResults searchResultsPager = issueNavigator.getSearchResults(); if (searchResultsPager != null) { final List currentPage = searchResultsPager.getIssues(); if (currentPage != null && !currentPage.isEmpty()) { // as the table layout bean is expensive to create - lets not create it if we don't need to IssueTableLayoutBean layoutBean = issueNavigator.getTableLayoutFactory().getStandardLayout(issueNavigator.getSearchRequest(), issueNavigator.getRemoteUser()); if ("printable".equalsIgnoreCase(request.getParameter("decorator"))) { layoutBean.setSortingEnabled(false); } // Set some display hints that lets templates know that we are rendering from the issue navigator layoutBean.addCellDisplayParam(FieldRenderingContext.NAVIGATOR_VIEW, Boolean.TRUE); %><%= new IssueTableWebComponent().getHtml(layoutBean, currentPage, searchResultsPager) %><% } } } catch (SearchException e) { // Fix for JRA-15257 // invalid search input, ignore } %>