Interface BulkMoveOperation
- All Superinterfaces:
IssueOperation
,ProgressAwareBulkOperation
- All Known Implementing Classes:
BulkMoveOperationImpl
Operation for moving parent issues and their sub-tasks from one or many contexts to a single target
context.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
chooseContext
(BulkEditBean bulkEditBean, ApplicationUser applicationUser, I18nHelper i18nHelper, ErrorCollection errors) void
chooseContextNoValidate
(BulkEditBean bulkEditBean, ApplicationUser applicationUser) void
finishChooseContext
(BulkEditBean bulkEditBean, ApplicationUser applicationUser) Does operations on the given BulkEditBean to finalise the "Choose Project and Issue Type" step of the Bulk Move.void
finishChooseContext
(MultiBulkMoveBean multiBulkMoveBean, ApplicationUser applicationUser) Does the finishChooseContext() operation for all the BulkEditBeans in the given MultiBulkMoveBean.boolean
isStatusValid
(BulkEditBean bulkEditBean) void
moveIssuesAndIndex
(BulkEditBean bulkEditBean, ApplicationUser remoteUser) void
moveIssuesAndIndex
(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext) void
setStatusFields
(BulkEditBean bulkEditBean) void
validatePopulateFields
(BulkEditBean bulkEditBean, ErrorCollection errors, I18nHelper i18nHelper) Methods inherited from interface com.atlassian.jira.issue.operation.IssueOperation
getDescriptionKey, getNameKey
Methods inherited from interface com.atlassian.jira.bulkedit.operation.ProgressAwareBulkOperation
canPerform, getCannotPerformMessageKey, getNumberOfTasks, getOperationName, perform
-
Field Details
-
CANNOT_PERFORM_MESSAGE_KEY
- See Also:
-
NAME_KEY
- See Also:
-
NAME
- See Also:
-
-
Method Details
-
isStatusValid
-
moveIssuesAndIndex
-
moveIssuesAndIndex
void moveIssuesAndIndex(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext) -
chooseContext
void chooseContext(BulkEditBean bulkEditBean, ApplicationUser applicationUser, I18nHelper i18nHelper, ErrorCollection errors) -
chooseContextNoValidate
-
setStatusFields
- Throws:
WorkflowException
-
validatePopulateFields
void validatePopulateFields(BulkEditBean bulkEditBean, ErrorCollection errors, I18nHelper i18nHelper) -
finishChooseContext
Does operations on the given BulkEditBean to finalise the "Choose Project and Issue Type" step of the Bulk Move.This method should be called AFTER validation of the new context, and re-mapping the BulkEditBeans to be indexed by Target context.
- Sets the target field layout (aka "Field Configuration") according to target Project and Issue Type.
- Decides which Issue Fields need to be edited by the user.
- Will delete values for fields that should be removed (ie not used in new context).
- Sets the SubTaskBulkEditBean if any of these issues have subtasks which will also need to be moved.
- Parameters:
bulkEditBean
- BulkEditBean containing Bulk Move information for a single target "Issue Context".applicationUser
- User doing the operation.- See Also:
-
finishChooseContext
Does the finishChooseContext() operation for all the BulkEditBeans in the given MultiBulkMoveBean.- Parameters:
multiBulkMoveBean
- MultiBulkMoveBean (Contains Collection of BulkEditBean objects).applicationUser
- User- See Also:
-