Class DateQuickSearchHandler
java.lang.Object
com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
com.atlassian.jira.issue.search.quicksearch.DateQuickSearchHandler
- All Implemented Interfaces:
QuickSearchHandler
- Direct Known Subclasses:
CreatedQuickSearchHandler,UpdatedQuickSearchHandler
A date searcher that can handle QuickSearches of the type
field:<param>
where param is one of:
- today
- yesterday
- tomorrow
- Relative date. eg: '-1w', '2d'
- 2 Relative dates. eg: '-1w,4h', '-7d,7d'
Note that relative dates are separated by a comma, and they cannot contain any spaces. Therefore only one time slice is allowed.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDateQuickSearchHandler(DateTimeFormatterFactory dateTimeFormatterFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringprotected abstract Stringprotected MaphandleWord(String word, QuickSearchResult searchResult) Hanldle a single word, and return a map of parametersMethods inherited from class com.atlassian.jira.issue.search.quicksearch.SingleWordQuickSearchHandler
getIssueConstantByName, modifySearchResult
-
Constructor Details
-
DateQuickSearchHandler
-
-
Method Details
-
handleWord
Description copied from class:SingleWordQuickSearchHandlerHanldle a single word, and return a map of parameters- Specified by:
handleWordin classSingleWordQuickSearchHandler- Parameters:
word- A single word - guaranteed to not be nullsearchResult- The existing search result- Returns:
- A Map of parameters that can be used as a URL.
-
getPrefix
-
getSearchParamName
-