com.atlassian.jira.issue.fields.OrderableField |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Interface for fields in JIRA which are able to be placed on "screens" - once they are on the screen they have an "order".
More generally, OrderableField
s can be viewed and edited.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MOVE_ISSUE_PARAM_KEY | ||||||||||
String | NO_HEADER_PARAM_KEY | ||||||||||
String | TEMPLATE_DIRECTORY_PATH |
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 HTML that should be shown when the issue is being bulk edited.
| |||||||||||
Returns the HTML that should be shown when the issue is being created.
| |||||||||||
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 HTML that should be shown when the issue is being edited.
| |||||||||||
Get a field value from the map of parameters passed.
| |||||||||||
Checks to see if the (web) parameters contains a relevant value with which to populate the issue
| |||||||||||
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.
| |||||||||||
Populate the fieldValuesHolder with a value from (web) parameters.
| |||||||||||
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
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.issue.fields.Field
| |||||||||||
From interface
com.atlassian.jira.issue.fields.SearchableField
| |||||||||||
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 HTML that should be shown when the issue is being bulk edited.
operationContext | OperationContext |
---|---|
action | Action |
bulkEditBean | BulkEditBean |
displayParameters | Map of display parameters. |
Returns the HTML that should be shown when the issue is being created.
fieldLayoutItem | FieldLayoutItem |
---|---|
operationContext | OperationContext |
action | Action |
issue | Issue |
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 |
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. |
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. |
---|
FieldValidationException | if there is a problem with Field Validation. |
---|
Checks to see if the (web) parameters contains a relevant value with which to populate the issue
parameters | Map of HTTP request parameters ("Action 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. |
Populate the fieldValuesHolder with a value from (web) parameters.
fieldValuesHolder | The fieldValuesHolder Map to be populated. |
---|---|
parameters | Map of HTTP parameters. |
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 | if cannot convert to a value from the given string |
---|
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 |