java.lang.Object | |
↳ | com.atlassian.jira.bc.subtask.conversion.DefaultIssueConversionService |
Known Direct Subclasses |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fieldLayoutManager | |||||||||||
fieldManager | |||||||||||
issueTypeSchemeManager | |||||||||||
jiraAuthenticationContext |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This is the core method that converts given issue to an issue represented by updatedIssue.
| |||||||||||
Retrieves the collection of
FieldLayoutItem
required to be entered from converting issue from given issue to given target issue. | |||||||||||
Retrieves the fields that have values on the issue but are no longer needed.
| |||||||||||
Retrieves the fields that have values on the issue but are no longer needed.
| |||||||||||
Checks the user's permission to convert given issue.
| |||||||||||
Determines if the workflow status exists in the target workflow (based
on current project and target issue type).
| |||||||||||
Populates the operationContext from the params in the webwork.action.ActionContext
In case of invalid values, new error messages are added to the context's error collection under the
fieldName.
| |||||||||||
Validates that all fields inputed have valid values.
| |||||||||||
Validates that the target status is a valid status for the issue's
project and the target issue type.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
For an issue to subtask conversion, we can safely ignore the issue security field since the subtask
will always take the security level of the parent issue.
| |||||||||||
Allows sub-classes override to use another permission
| |||||||||||
Translates a given key using i18n bean, passing in param
| |||||||||||
Translates a given key using i18n bean
| |||||||||||
Translates a given key using i18n bean, passing in params
| |||||||||||
JRA-12671 - need to determine if we should call hasValue on the field.
| |||||||||||
Retrieves the workflow for given project and issue type combination and
checks whether the given status is in this workflow.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.bc.subtask.conversion.IssueConversionService
|
This is the core method that converts given issue to an issue represented by updatedIssue.
context | jira service context, any error are added here |
---|---|
currentIssue | original issue |
updatedIssue | target issue |
Retrieves the collection of FieldLayoutItem
required to be entered from converting issue from given issue to given target issue.
context | jira service context |
---|---|
originalIssue | Current Issue |
targetIssue | Issue with updated issue type |
FieldLayoutItem
that require values, never null
Retrieves the fields that have values on the issue but are no longer needed.
origIssue | issue |
---|---|
targetIssue | issue |
OrderableField
, never null
Retrieves the fields that have values on the issue but are no longer needed.
context | jira service context |
---|---|
origIssue | issue |
targetIssue | issue |
OrderableField
, never nullChecks the user's permission to convert given issue. User is retrieved from the context.
context | jira service context |
---|---|
issue | issue to check the permission on |
Determines if the workflow status exists in the target workflow (based
on current project and target issue type).
Returns true if the issue's status is not a valid status for the target
issue type workflow in the issue's project - issue's status needs to
change, false otherwise.
context | jira service context |
---|---|
issue | issue to convert |
issueType | target issue type |
Populates the operationContext from the params in the webwork.action.ActionContext In case of invalid values, new error messages are added to the context's error collection under the fieldName.
context | jira service context |
---|---|
operationContext | contains Map (CustomFieldValuesHolder) where field values will be populated |
i18nHelper | helper bean for i18n (needed by fields) |
targetIssue | Current issue with updated parent, issue type and status |
fieldLayoutItems | Collection of FieldLayoutItem that required input
|
Validates that all fields inputed have valid values. In case of invalid values, new error messages are added to the context's error collection under the fieldName.
context | jira service context |
---|---|
operationContext | contains Map (CustomFieldValuesHolder) containing values to be validated |
i18nHelper | helper bean for i18n (needed by fields) |
targetIssue | Current issue with updated parent, issue type and status |
fieldLayoutItems | Collection of FieldLayoutItem that required input
|
Validates that the target status is a valid status for the issue's project and the target issue type. In case of invalid status a new error message is added to the context's error collection under the given fieldName.
context | jira service context |
---|---|
status | target status |
fieldName | form field name |
issue | issue to convert |
issueType | target issue type |
For an issue to subtask conversion, we can safely ignore the issue security field since the subtask will always take the security level of the parent issue. This however is not the case for subtask to issue conversion
Allows sub-classes override to use another permission
Translates a given key using i18n bean, passing in param
key | key to transkate |
---|---|
param | param to insert into property |
Translates a given key using i18n bean
key | key to translate |
---|
Translates a given key using i18n bean, passing in params
key | key to transkate |
---|---|
param0 | 1st param to insert into property |
param1 | 2nd param to insert into property |
JRA-12671 - need to determine if we should call hasValue on the field. For calculated custom fields, that are not in scope this isn't the case. This should prevent us from calling hasValue on calculated custom fields. protected to make it testable.
origIssue | The original issue in which we'll check the context |
---|---|
field | The field in question. |
Retrieves the workflow for given project and issue type combination and checks whether the given status is in this workflow.
status | issue status |
---|---|
projectId | project id |
issueTypeId | issue type id |