Package com.atlassian.jira.issue.fields
Interface NavigableField
- All Superinterfaces:
Comparable,Field
- All Known Subinterfaces:
AffectedVersionsField,ComponentsField,CustomField,FixVersionsField,ProjectField,SummaryField,TimeSpentField
- All Known Implementing Classes:
AbstractAggregateDurationSystemField,AbstractDurationSystemField,AbstractOrderableNavigableFieldImpl,AbstractPickerFieldImpl,AbstractProgressBarSystemField,AbstractTextSystemField,AbstractUserFieldImpl,AbstractVersionsSystemField,AffectedVersionsSystemField,AggregateEstimateSystemField,AggregateOriginalEstimateSystemField,AggregateProgressBarSystemField,AggregateTimeSpentSystemField,AssigneeSystemField,ComponentsSystemField,CreatedSystemField,CreatorSystemField,DescriptionSystemField,DueDateSystemField,EnvironmentSystemField,FixVersionsSystemField,ImmutableCustomField,IssueLinksSystemField,IssueTypeSystemField,KeySystemField,LabelsSystemField,LastViewedSystemField,MockCustomField,MockNavigableField,NavigableFieldImpl,OriginalEstimateSystemField,PrioritySystemField,ProgressBarSystemField,ProjectSystemField,ReporterSystemField,ResolutionDateSystemField,ResolutionSystemField,SecurityLevelSystemField,StatusSystemField,SubTaskSystemField,SummarySystemField,ThumbnailSystemField,TimeEstimateSystemField,TimeSpentSystemField,UpdatedSystemField,VotesSystemField,WatchesSystemField,WorkRatioSystemField
Fields in JIRA which are able to be placed in the Issue Navigator implement this interface.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map<String, Object> displayParams, Issue issue) The order in which to sort the field when it is sorted for the first time.getFieldSorts(FieldSort.Order sortOrder) Returns a list ofFieldSortobjects that can be used to sort this field.Returns the id of the field to check for visibility.A loader to be used when loading the value of the field from the index.default booleanChecks whether the field has either Lucene SortFields or FieldSorts that can be used to sort the field.prettyPrintChangeHistory(String changeHistory) prettyPrintChangeHistory(String changeHistory, I18nHelper i18nHelper) Used for email notification templates - allows changelog to be displayed in language of the recipient.default StringprettyPrintChangeHistory(String changeHistory, String id, I18nHelper i18nHelper) Used for email notification templates - allows changelog to be displayed in language of the recipient.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKey
-
Field Details
-
TEMPLATE_DIRECTORY_PATH
- See Also:
-
ORDER_ASCENDING
- See Also:
-
ORDER_DESCENDING
- See Also:
-
-
Method Details
-
getColumnHeadingKey
String getColumnHeadingKey() -
getColumnCssClass
String getColumnCssClass() -
getDefaultSortOrder
String getDefaultSortOrder()The order in which to sort the field when it is sorted for the first time.- Returns:
- Either
ORDER_ASCENDINGorORDER_DESCENDING
-
getFieldSorts
Returns a list ofFieldSortobjects that can be used to sort this field.- Parameters:
sortOrder- the order in which to sort the field- Returns:
- a list of
FieldSortobjects that can be used to sort this field - Since:
- 10.4
-
hasSortsDefined
default boolean hasSortsDefined()Checks whether the field has either Lucene SortFields or FieldSorts that can be used to sort the field.- Returns:
- true if the field has either Lucene SortFields or FieldSorts that can be used to sort the field
- Since:
- 10.4
-
getValueLoader
A loader to be used when loading the value of the field from the index.- Returns:
- A loader that can be used to load the value of the field
- Since:
- 10.4
- See Also:
-
getColumnViewHtml
-
getHiddenFieldId
String getHiddenFieldId()Returns the id of the field to check for visibility. For example, with original estimate field need to ensure that the timetracking field is not hidden. With most fields, this is the same as their id. -
prettyPrintChangeHistory
-
prettyPrintChangeHistory
Used for email notification templates - allows changelog to be displayed in language of the recipient. By default it calls prettyPrintChangeHistory without id argument for backward compatibility.- Parameters:
changeHistory- - labelid- - object value- Returns:
- String change history formatted according to locale in i18nHelper
-
prettyPrintChangeHistory
Used for email notification templates - allows changelog to be displayed in language of the recipient.- Parameters:
changeHistory- - label- Returns:
- String change history formatted according to locale in i18nHelper
-