java.lang.Object | ||||
↳ | com.atlassian.jira.issue.fields.AbstractField | |||
↳ | com.atlassian.jira.issue.fields.AbstractOrderableField | |||
↳ | com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl | |||
↳ | com.atlassian.jira.issue.fields.IssueTypeSystemField |
Copyright (c) 2002-2004 All rights reserved.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface com.atlassian.jira.issue.fields.NavigableField | |||||||||||
From interface
com.atlassian.jira.issue.fields.OrderableField
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.issue.fields.AbstractField
|
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. | |||||||||||
Create the value of the issue in the data store.
| |||||||||||
Returns a list of projects associated with this field.
| |||||||||||
Returns a list of projects associated with this field.
| |||||||||||
Returns HTML that should be shown when the issue is being bulk edited.
| |||||||||||
Returns a List of
FieldConfigItemType objects. | |||||||||||
Returns the HTML that should be shown when the issue is being created.
| |||||||||||
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 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.
| |||||||||||
Get a field value from the map of parameters passed.
| |||||||||||
Determines if the field has a value for the given issue.
| |||||||||||
This method will determine if there are ANY issue type that the selectedIssues
have in common.
| |||||||||||
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.
| |||||||||||
Return an internationalized value for the changeHistory item - an issue type name in this case.
| |||||||||||
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.
| |||||||||||
validate the field value
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl | |||||||||||
From class
com.atlassian.jira.issue.fields.AbstractOrderableField
| |||||||||||
From class
com.atlassian.jira.issue.fields.AbstractField
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.issue.fields.ConfigurableField
| |||||||||||
From interface
com.atlassian.jira.issue.fields.DependentField
| |||||||||||
From interface
com.atlassian.jira.issue.fields.Field
| |||||||||||
From interface
com.atlassian.jira.issue.fields.IssueConstantsField
| |||||||||||
From interface
com.atlassian.jira.issue.fields.IssueTypeField
| |||||||||||
From interface com.atlassian.jira.issue.fields.NavigableField | |||||||||||
From interface
com.atlassian.jira.issue.fields.OrderableField
| |||||||||||
From interface
com.atlassian.jira.issue.fields.SearchableField
| |||||||||||
From interface
com.atlassian.jira.issue.fields.rest.RestAwareField
| |||||||||||
From interface
java.lang.Comparable
|
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.Create the value of the issue in the data store.
issue | Issue this field is part of |
---|---|
value | Value to store in this field (eg. Collection for Version fields). Cannot be null. |
Returns a list of projects associated with this field. Will be null if the field is global
Returns a list of projects associated with this field. Will be null if the field is global
Returns HTML that should be shown when the issue is being bulk edited.
By default calls the getEditHtml(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, com.atlassian.jira.issue.customfields.OperationContext, webwork.action.Action, com.atlassian.jira.issue.Issue, java.util.Map)
method with null for FieldLayoutItem
and the first issue in the collection}
operationContext | OperationContext |
---|---|
action | Action |
bulkEditBean | BulkEditBean |
displayParameters | Map of display parameters. |
Returns a List of FieldConfigItemType
objects. This opens up possibilties for configurable custom fields
FieldConfigItemType
@Nonnull
Returns the HTML that should be shown when the issue is being created.
fieldLayoutItem | FieldLayoutItem |
---|---|
operationContext | OperationContext |
action | Action |
issue | Issue |
displayParameters | Map of display parameters. |
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 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.
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. |
---|
This method will determine if there are ANY issue type that the selectedIssues have in common. This takes into account the possible difference in workflow or field configuration for each issue type.
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 |
---|
Return an internationalized value for the changeHistory item - an issue type name in this case.
changeHistory | name of issue type |
---|---|
i18nHelper | used to translate the issue type name |
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. |
validate the field value
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 |