java.lang.Object | |||
↳ | com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T, S> | ||
↳ | com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<T> | ||
↳ | com.atlassian.jira.issue.customfields.impl.UserCFType |
Custom Field allow selection of a single ApplicationUser
. For multi-user see MultiUserCFType
ApplicationUser
String
of user nameNested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UserCFType.Visitor<T> |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ENTITY_TYPE |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a String of representing values to be stored in the change log, an example is the name of a version
field that a version id will resolve to within JIRA.
| |||||||||||
Returns a List of
FieldConfigItemType objects. | |||||||||||
Returns lower level Information about the field.
| |||||||||||
Return a JsonData representation of the field value
| |||||||||||
Return a description of the shape of this field when represented as JSON.
| |||||||||||
Returns the object that will perform the actual project import functions for the custom field type.
| |||||||||||
Returns the RestFieldOperationsHandler for this field.
| |||||||||||
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods
(eg managers).
| |||||||||||
called when removing a field.
| |||||||||||
the value does exist, and the new value is different than the
existing one.
| |||||||||||
This method validate the parameters based on the following criteria:
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Type of database field needed to store this field.
| |||||||||||
Returns the database representation of the Java object as stored for that CustomField.
| |||||||||||
Returns the Transport Object for the given Custom Field value as represented by the value
stored in the database
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns a String of representing values to be stored in the change log, an example is the name of a version field that a version id will resolve to within JIRA.
field | CustomField that the value belongs to |
---|---|
value | Transport Object representing the value instance of the CustomField |
Returns a List of FieldConfigItemType
objects. Can not be immutable.
This opens up possibilities for configurable custom fields.
FieldConfigItemType
Returns lower level Information about the field. This information contains allowed values and/or the autocomplete url
fieldTypeInfoContext | context information for generating the FieldTypeInfo . |
---|
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 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 |
---|
FieldValidationException |
---|
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)
called when removing a field. return issue IDs affected.
Subclasses should override this if they have specific cleanup that they need to do (such as removing select list values)
the value does exist, and the new value is different than the existing one.
This method validate the parameters based on the following criteria:
relevantParams
map.relevantParams | the custom field parameters, containing the new value under the null key, and optionally the previous value (username) as a single String item list under the key "oldValue", and also optionally the list of projectIds in the current context, as a String list under the key "projectIds", and also optionally a value to indicate whether to load project id's from field config with a single boolean item list under the key "requireProjectIds". |
---|---|
errorCollectionToAddTo | any validation errors will be added into this collection |
config | the field configuration |
Type of database field needed to store this field.
PersistenceFieldType
types.
Returns the database representation of the Java object as stored for that CustomField.
(eg. ProjectId if the Value represents a project). Must be compatable with type returned by getDatabaseType()
customFieldObject | the Transport Object |
---|
Returns the Transport Object for the given Custom Field value as represented by the value stored in the database
databaseValue | - String, Double or Date objects as returned from getDbValueFromObject(Object) |
---|
FieldValidationException |
---|