abstract
boolean
|
canIssueSecurityFieldIgnore()
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.
|
void
|
convertIssue(JiraServiceContext context, Issue currentIssue, MutableIssue updatedIssue)
This is the core method that converts given issue to an issue represented by updatedIssue.
|
Collection<FieldLayoutItem>
|
getFieldLayoutItems(JiraServiceContext context, Issue originalIssue, Issue targetIssue)
Retrieves the collection of FieldLayoutItem
required to be entered from converting issue from given issue to given target issue.
|
Collection<FieldLayoutItem>
|
getFieldLayoutItems(Issue originalIssue, Issue targetIssue)
Retrieves the collection of FieldLayoutItem
required to be entered from converting issue from given issue to given target issue.
|
int
|
getPermissionNeeded()
Allows sub-classes override to use another permission
|
Collection<OrderableField>
|
getRemovedFields(Issue origIssue, Issue targetIssue)
Retrieves the fields that have values on the issue but are no longer needed.
|
Collection<OrderableField>
|
getRemovedFields(JiraServiceContext context, Issue origIssue, Issue targetIssue)
Retrieves the fields that have values on the issue but are no longer needed.
|
String
|
getText(String key, Object param)
Translates a given key using i18n bean, passing in param
|
String
|
getText(String key)
Translates a given key using i18n bean
|
String
|
getText(String key, String param0, String param1)
Translates a given key using i18n bean, passing in params
|
boolean
|
hasPermission(JiraServiceContext context, Issue issue)
Checks the user's permission to convert given issue.
|
boolean
|
isShouldCheckFieldValue(Issue origIssue, Field field)
JRA-12671 - need to determine if we should call hasValue on the field.
|
boolean
|
isStatusChangeRequired(JiraServiceContext context, Issue issue, IssueType issueType)
Determines if the workflow status exists in the target workflow (based
on current project and target issue type).
|
boolean
|
isStatusInWorkflowForProjectAndIssueType(Status status, Long projectId, String issueTypeId)
Retrieves the workflow for given project and issue type combination and
checks whether the given status is in this workflow.
|
void
|
populateFields(JiraServiceContext context, OperationContext operationContext, I18nHelper i18nHelper, Issue targetIssue, Collection<FieldLayoutItem> fieldLayoutItems)
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.
|
void
|
validateFields(JiraServiceContext context, OperationContext operationContext, I18nHelper i18nHelper, Issue targetIssue, Collection<FieldLayoutItem> fieldLayoutItems)
Validates that all fields inputed have valid values.
|
void
|
validateTargetStatus(JiraServiceContext context, Status status, String fieldName, Issue issue, IssueType issueType)
Validates that the target status is a valid status for the issue's
project and the target issue type.
|