java.lang.Object | ||
↳ | com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T, S> | |
↳ | com.atlassian.jira.issue.customfields.impl.CascadingSelectCFType |
Cascading Select Custom Field Type allows for multiple dependent select lists.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CascadingSelectCFType.Visitor<T> |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CHILD_KEY |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.issue.customfields.CustomFieldType
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CASCADE_VALUE_TYPE | |||||||||||
PARENT_KEY |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a cascading select-list instance for an issue.
| |||||||||||
Returns a List of
FieldConfigItemType objects. | |||||||||||
Retrieves the Object representing the default CustomField value for the Custom Field.
| |||||||||||
Returns lower level Information about the field.
| |||||||||||
Returns a list of Issue Ids matching the "value" note that the value in this instance is the single object
| |||||||||||
Return The default data for this system field.
| |||||||||||
Return a JsonData representation of the field value
| |||||||||||
Return a description of the shape of this field when represented as JSON.
| |||||||||||
Returns all possible Options for this field.
| |||||||||||
Returns the object that will perform the actual project import functions for the custom field type.
| |||||||||||
Returns the RestFieldOperationsHandler for this field.
| |||||||||||
Returns a Singular Object, given the string value as passed by the presentation tier.
| |||||||||||
Return the String value object from the CustomFieldParams.
| |||||||||||
Retrieves the Transport Object representing the CustomField value instance from the CustomFieldParams of Strings.
| |||||||||||
Retrieves the Transport Object representing the current CustomField value for the given issue.
| |||||||||||
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods
(eg managers).
| |||||||||||
Performs additional tasks when an entire CustomField of this type is being removed
remove() . | |||||||||||
Perform any actions required if the option selected by the issue is removed.
| |||||||||||
Ensures that the
CustomFieldParams of Strings is a valid representation of the Custom Field values. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.imports.project.customfield.ProjectImportableCustomField
| |||||||||||
From interface
com.atlassian.jira.issue.customfields.CustomFieldType
| |||||||||||
From interface
com.atlassian.jira.issue.customfields.MultipleCustomFieldType
| |||||||||||
From interface
com.atlassian.jira.issue.customfields.MultipleSettableCustomFieldType
| |||||||||||
From interface
com.atlassian.jira.issue.customfields.SortableCustomField
| |||||||||||
From interface
com.atlassian.jira.issue.fields.rest.RestAwareCustomFieldType
| |||||||||||
From interface
com.atlassian.jira.issue.fields.rest.RestCustomFieldTypeOperations
|
Create a cascading select-list instance for an issue.
Returns a List of FieldConfigItemType
objects. Can not be immutable.
This opens up possibilities for configurable custom fields.
FieldConfigItemType
Retrieves the Object representing the default CustomField value for the Custom Field.
fieldConfig | CustomField for default value |
---|
Returns lower level Information about the field. This information contains allowed values and/or the autocomplete url
fieldTypeInfoContext | context information for generating the FieldTypeInfo . |
---|
Returns a list of Issue Ids matching the "value" note that the value in this instance is the single object
field | the CustomField to search on |
---|---|
option | the Object representing a single value to search on. |
Return The default data for this system field. May be null if there is no default.
issueCtx | Issue (This should really only need to be an issue context, but for historical reasons we need an issue object. |
---|---|
field | the Custom Field |
Return a JsonData representation of the field value
field | configuration of the current field |
---|---|
issue | to get field data from |
renderedVersionRequested | whether the use requested the return of rendered/pretty data as well as raw data |
fieldLayoutItem | field layout for this field. |
Return a description of the shape of this field when represented as JSON.
Returns all possible Options for this field.
fieldConfig | configuration for this field |
---|---|
jiraContextNode | context |
Returns the object that will perform the actual project import functions for the custom field type.
Returns the RestFieldOperationsHandler for this field.
field | the Custom Field |
---|
Returns a Singular Object, given the string value as passed by the presentation tier. Throws FieldValidationException if the string is an invalid representation of the Object.
string | the String |
---|
FieldValidationException |
---|
Return the String value object from the CustomFieldParams. The object may be a single String (e.g. TextCFType, List of Strings (e.g. MultiSelectCFType) or CustomFieldParams of Strings (e.g. CascadingSelectCFType). Among other things these values are passed to Velocity for rendering edit screens.
parameters | - CustomFieldParams containing String values |
---|
Retrieves the Transport Object representing the CustomField value instance from the CustomFieldParams of Strings.
relevantParams | CustomFieldParams of String objects. Will contain one value for Singular field types. |
---|
createValue(CustomField, Issue, T)
, updateValue(CustomField, Issue, T)
FieldValidationException |
---|
Retrieves the Transport Object representing the current CustomField value for the given issue.
field | Custom field for which to retrieve the value |
---|---|
issue | Issue from which to retrieve the value |
createValue(CustomField, Issue, T)
, updateValue(CustomField, Issue, T)
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods (eg managers).
The values are added to the context for all velocity views (edit, search, view, xml)issue | The issue currently in context (Note: this will be null in cases like 'default value') |
---|---|
field | CustomField |
fieldLayoutItem | FieldLayoutItem |
Map
of parameters to add to the velocity context, or an empty Map otherwise (never null)
Performs additional tasks when an entire CustomField of this type is being removed remove()
.
This includes removal of values & options.
field | The custom field that is being removed, so any data stored for any issues for that field can be deleted. |
---|
Perform any actions required if the option selected by the issue is removed.
field | being edited |
---|---|
issue | to remove stuff from |
option | option being removed. |
Ensures that the CustomFieldParams
of Strings is a valid representation of the Custom Field values.
Any errors should be added to the ErrorCollection
under the appropriate key as required.
relevantParams | parameter object of Strings |
---|---|
errorCollectionToAddTo | errorCollection to which any erros should be added (never null) |
config | FieldConfig |