Class DefaultSearchUtil
java.lang.Object
com.atlassian.jira.plugin.issuenav.util.DefaultSearchUtil
Calculates the URLs of default searches.
- Since:
- v5.2
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSearchUtil(JiraAuthenticationContext jiraAuthenticationContext, SearchService searchService, UserProjectHistoryManager userProjectHistoryManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Queryprotected QuerygetProjectQuery(Project project) When a user has no session search we should try to show something useful.
-
Constructor Details
-
DefaultSearchUtil
@Inject public DefaultSearchUtil(JiraAuthenticationContext jiraAuthenticationContext, SearchService searchService, UserProjectHistoryManager userProjectHistoryManager)
-
-
Method Details
-
getSearch
When a user has no session search we should try to show something useful.- If they have open issues, show the "My open issues" filter.
- If their current project contains issues, show them.
- Otherwise, show all issues in the system.
- Returns:
- the default search that should be presented.
-
getOpenIssuesQuery
-
getProjectQuery
-