java.lang.Object | ||||
↳ | com.atlassian.jira.issue.fields.AbstractField | |||
↳ | com.atlassian.jira.issue.fields.AbstractOrderableField<V> | |||
↳ | com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl<V> | |||
↳ | com.atlassian.jira.issue.fields.ComponentsSystemField |
A field implementation to render ProjectComponent
values.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CHANGE_ITEM_FIELD |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
COMPONENT_TO_ID_TRANSFORMER |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines whether the field is available for bulk editing given the BulkEditBean.
| |||||||||||
Returns
true if a call to removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)
will actually remove the value. | |||||||||||
Returns HTML that should be shown when components are being bulk edited.
| |||||||||||
Returns the list of components contained in the given parameters Map, or null if not contained.
| |||||||||||
Returns the HTML that should be shown when the issue is being created.
| |||||||||||
The order in which to sort the field when it is sorted for the first time.
| |||||||||||
The value that should be set on the issue if the field is not shown for some reason.
| |||||||||||
Returns HTML that should be shown when the issue is being edited.
| |||||||||||
Returns lower level Information about the field.
| |||||||||||
Return The default data for this system field.
| |||||||||||
Return a FieldJsonDataPair containing a json representation of the raw data for this field, and if required, a json representation
of the rendered data for easy display.
| |||||||||||
Return a description of the shape of this field when represented as JSON.
| |||||||||||
A sorter to be used when sorting columns in a table.
| |||||||||||
Get a field value from the map of parameters passed.
| |||||||||||
Determines if the field has a value for the given issue.
| |||||||||||
Tests field specific way to determine if it should be shown or not.
| |||||||||||
Used to determine if the field needs input from user to be moved to the new project and/or issue type.
| |||||||||||
Populate the fieldValueHolder with a value that should be shown by default when the issue
has not been created yet.
| |||||||||||
Used to populate the fieldValueHolder with parameters for move issue screen.
| |||||||||||
Used to initialise the fieldValuesHolder from the current value of teh issue.
| |||||||||||
Used to convert from a user friendly string value and put the result into the fieldValuesHolder.
| |||||||||||
Removes the field value from the given MutableIssue object.
| |||||||||||
Record the value on the issue (not saving it to the database, see updateValue).
| |||||||||||
Update the issue in the data store.
| |||||||||||
Ensure that the parameters are valid
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compare the two genericValue collections and make sure they both contain the same set of ids
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Determines whether the field is available for bulk editing given the BulkEditBean.
bulkEditBean | holds the state of the bulk-edit wizard (e.g. the selected issues for bulk editing) |
---|
null
if the field is available for bulk-editing or an i18n key of the error message to show as
why the field is not available.
Returns true
if a call to removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)
will actually remove the value.
There a few different reasons why this method may return false:
issue | The Issue object. |
---|
true
if a call to removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)
will actually remove the value.Returns HTML that should be shown when components are being bulk edited.
The HTML displayed for Bulk Move of Components needs to allow the user to specify mappings for each old component present in the currently selected issues.
operationContext | OperationContext |
---|---|
action | Action |
bulkEditBean | BulkEditBean |
displayParameters | Map of display parameters. |
Returns the list of components contained in the given parameters Map, or null if not contained.
This is used by the DefaultAssigneeResolver to find components about to be set to an issue.
params | the map of parameters. |
---|
Returns the HTML that should be shown when the issue is being created.
fieldLayoutItem | FieldLayoutItem |
---|---|
operationContext | OperationContext |
action | Action |
issue | Issue |
dispayParameters | Map of display parameters. |
The order in which to sort the field when it is sorted for the first time.
ORDER_ASCENDING
or ORDER_DESCENDING
The value that should be set on the issue if the field is not shown for some reason.
For example: The user does not have permission to see the field, or the field is not part of the create screen.
issue | the Issue. |
---|
Returns HTML that should be shown when the issue is being edited.
fieldLayoutItem | FieldLayoutItem |
---|---|
operationContext | OperationContext |
action | Action |
issue | Issue |
displayParameters | Map of display parameters. |
Returns lower level Information about the field. This information contains allowed values and/or the autocomplete url
fieldTypeInfoContext | the FieldTypeInfoContext contains context information that is relevant to generate the FieldTypeInfo
|
---|
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. |
---|
Return a FieldJsonDataPair containing a json representation of the raw data for this field, and if required, a json representation of the rendered data for easy display.
issue | to get field data from |
---|---|
renderedVersionRequired | whether the use requested the return of rendered/pretty data as well as raw data |
fieldLayoutItem | field layout for this field. Will only be supplied if the field is also an ordereable field. |
Return a description of the shape of this field when represented as JSON.
A sorter to be used when sorting columns in a table. This sort uses the Lucene Document Collection and is therefore a lot faster than sorting the issues in memory.
getSortComparatorSource()
Get a field value from the map of parameters passed. The params map may contain other parameters that are not relevant to this custom field.
params | the map of parameters. |
---|
Determines if the field has a value for the given issue.
issue | the Issue. |
---|
Tests field specific way to determine if it should be shown or not.
issue | The Issue. |
---|
Used to determine if the field needs input from user to be moved to the new project and/or issue type. This method is called only if the field is visible in the target project/issue type.
originalIssues | Collection of original Issues. |
---|---|
targetIssue | Target Issue. |
targetFieldLayoutItem | FieldLayoutItem |
Populate the fieldValueHolder with a value that should be shown by default when the issue has not been created yet.
fieldValuesHolder | The fieldValuesHolder Map to be populated. |
---|---|
issue | The Issue. |
Used to populate the fieldValueHolder with parameters for move issue screen.
This field is only called if the issue needs to be updated during move, i.e. needsMove(java.util.Collection, com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem)
returned true, and the remote user (the one performing the move) has the permission to actually update this field.
fieldValuesHolder | Map of field Values. |
---|---|
originalIssue | orignal Issue |
targetIssue | target Issue |
Used to initialise the fieldValuesHolder from the current value of teh issue. Used, for example, when showing the Edit Issue screen to show the issue's current values.
fieldValuesHolder | The fieldValuesHolder Map to be populated. |
---|---|
issue | The Issue. |
Used to convert from a user friendly string value and put the result into the fieldValuesHolder. This method is useful for places like Jelly where the field value can be a name (e.g. issue type name) and not a regular id that is used in the web pages.
fieldValuesHolder | Map of field Values. |
---|---|
stringValue | user friendly string value |
issue | the Issue |
FieldValidationException |
---|
Removes the field value from the given MutableIssue object.
Note that this operation does not actually persist the change, it just clears the value from the given Issue object. The caller will still need to call #updateValue() in order to persist the change.
Some Fields may choose to quietly ignore this request. eg The SecurityLevel Field will not remove Security Level from subtasks because the subtask must always take the Security Level of its parent issue.
issue | The issue object to be effected. |
---|
Record the value on the issue (not saving it to the database, see updateValue).
fieldLayoutItem | FieldLayoutItem |
---|---|
issue | MutableIssue |
fieldValueHolder | Field Value Holder Map |
Update the issue in the data store.
Fields that are simply stored in the JIRAISSUE DB table, need not do anything here as this table is written to one time to include all fields that changed. Fields using other DB tables must update that table with the appropriate values.
fieldLayoutItem | for this field within this context |
---|---|
issue | Issue this field is part of |
modifiedValue | new value to set field to. Cannot be null. |
issueChangeHolder | an object to record any changes made to the issue by this method. |
Ensure that the parameters are valid
operationContext | OperationContext |
---|---|
errorCollectionToAddTo | ErrorCollection to add to. |
i18n | I18nHelper |
issue | This is passed to get the value of other fields that may or may not have been modified. |
fieldScreenRenderLayoutItem | FieldScreenRenderLayoutItem |
Compare the two genericValue collections and make sure they both contain the same set of ids
newComponent | collection of old org.ofbiz.core.entity.GenericValue GenericValues |
---|---|
currentComponent | collection of new org.ofbiz.core.entity.GenericValue GenericValues |