Class BulkMigrate
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
com.atlassian.jira.web.action.issue.bulkedit.BulkMove
com.atlassian.jira.web.action.issue.bulkedit.BulkMigrate
- All Implemented Interfaces:
ErrorCollection,I18nHelper,HttpServletVariables,AuthorizationSupport,Serializable,webwork.action.Action,webwork.action.CommandDriven,webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
MigrateIssueTypes
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageTypeNested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.ReasonNested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BulkMigrateOperationprotected final IssueServiceprotected final com.atlassian.webresource.api.assembler.PageBuilderServiceFields inherited from class com.atlassian.jira.web.action.issue.bulkedit.BulkMove
bulkMoveOperation, constantsManager, fieldManager, issueFactory, permissionManager, workflowManagerFields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManagerFields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManagerFields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULTFields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessagesFields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionBulkMigrate(SearchService searchService, BulkMoveOperation bulkMoveOperation, FieldManager fieldManager, WorkflowManager workflowManager, ConstantsManager constantsManager, IssueFactory issueFactory, BulkMigrateOperation bulkMigrateOperation, PermissionManager permissionManager, BulkEditBeanSessionHelper bulkEditBeanSessionHelper, TaskManager taskManager, I18nHelper i18nHelper, com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, IssueService issueService) -
Method Summary
Modifier and TypeMethodDescriptiondoStart()protected BulkMigrateOperationgetIssueKeys(BulkEditBean bulkEditBean) Supply a comma separated list of issue keys to parent issue selector.getIssueParentFieldName(BulkEditBean bulkEditBean) getIssuepickerDataSuggestion(String currentIssueKey) Prefills option (pretty formatted) in the view.getNameTranslation(IssueType issueType) getprojectFieldName(BulkEditBean bulkEditBean) booleanisAllowProjectEdit(BulkEditBean bulkEditBean) Determines if passedBulkEditBeanshould be allowed to edit project.booleanisFieldCopiedFromParent(OrderableField orderableField, BulkEditBean bulkEditBean) Determines if the value of @orderableField for current @bulkEditBean is copied from new parent issue.booleanisIssueToSubtask(BulkEditBean bulkEditBean) Determines if passedBulkEditBeanrepresents conversion from issue to subtask.booleanisParentIssueInherited(BulkEditBean bulkEditBean) Determines if parent issue is inherited from parentBulkEditBean.booleanisParentSelectPresent(BulkEditBean bulkEditBean) Determines if parent issue selector should be rendered.booleanisSubtaskToIssue(BulkEditBean bulkEditBean) Determines if passedBulkEditBeanrepresents conversion from subtask to issue.booleanisSubtaskToSubtask(BulkEditBean bulkEditBean) Determines if passedBulkEditBeanrepresents conversion from subtask to subtask.voidsetSameAsBulkEditBean(String sameAsBulkEditBean) voidsetSingleIssueId(Long singleIssueId) Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.BulkMove
doContextValidation, doDefault, doDetailsValidation, doFieldsValidation, doStatusValidation, getConstantsManager, getCurrentIssueType, getCurrentTargetPid, getCurrentTargetProject, getFieldHtml, getFieldHtml, getFieldHtml, getFieldName, getFieldViewHtml, getIssueObject, getMappingViewHtml, getMoveFieldLayoutItems, getNewViewHtml, getNewViewHtml, getStatusName, getSubstitutionsForField, getTargetWorkflowStatuses, getWorkflowForType, isAllowProjectEdit, isAvailable, isFieldUsingSubstitutions, isHasAvailableActions, isIssueTypesAvailable, isRetainMandatory, isSubTaskPhase, isSubTaskTypesAvailable, populateFromParams, progressToLastStep, setSubTaskPhaseMethods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
submitBulkOperationTaskMethods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
clearBulkEditBean, finishWizard, getColumns, getIssueTableLayoutBean, getRedirect, getRootBulkEditBean, isCanDisableMailNotifications, isSendBulkNotification, redirectToStart, setSendBulkNotification, storeBulkEditBean, storeReturnUrl, watchProgressMethods inherited from class com.atlassian.jira.web.action.IssueActionSupport
addIssueToHistory, getAttachmentManager, getCurrentDateTimeInUsersTimezone, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getFormToken, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setFormToken, setSearchRequest, setSelectedIssueId, updateSearchRequestMethods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProjectMethods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getActionNameJspa, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutboundWhitelistProvider, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeMethods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface webwork.action.CommandDriven
getCommandName, setCommandMethods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, setErrorMessages
-
Field Details
-
bulkMigrateOperation
-
pageBuilderService
protected final com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService -
issueService
-
-
Constructor Details
-
BulkMigrate
public BulkMigrate(SearchService searchService, BulkMoveOperation bulkMoveOperation, FieldManager fieldManager, WorkflowManager workflowManager, ConstantsManager constantsManager, IssueFactory issueFactory, BulkMigrateOperation bulkMigrateOperation, PermissionManager permissionManager, BulkEditBeanSessionHelper bulkEditBeanSessionHelper, TaskManager taskManager, I18nHelper i18nHelper, com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, IssueService issueService)
-
-
Method Details
-
doDetails
-
doStart
- Throws:
Exception
-
doChooseContext
- Throws:
Exception
-
doChooseSubTaskContext
- Throws:
Exception
-
doChooseStatus
- Throws:
Exception
-
doSetFields
- Throws:
Exception
-
doPerform
-
getBulkEditBean
- Overrides:
getBulkEditBeanin classBulkMove
-
getMultiBulkMoveBean
-
getCurrentIssueContext
-
getNameTranslation
-
getCurrentRootBulkEditBean
-
getOperationDetailsActionName
- Overrides:
getOperationDetailsActionNamein classBulkMove
-
getprojectFieldName
-
getIssueParentFieldName
-
getSameAsBulkEditBean
-
setSameAsBulkEditBean
-
getBulkMigrateOperation
-
getRedirectUrl
- Overrides:
getRedirectUrlin classAbstractBulkOperationAction- Throws:
Exception
-
getSingleIssueId
- See Also:
-
setSingleIssueId
- See Also:
-
getIssuepickerDataSuggestion
Prefills option (pretty formatted) in the view.Prefills option (pretty formatted) in the view so that after sending form with error currently selected item is pretty formatted.
- Parameters:
currentIssueKey- Currently entered parent issue key- Returns:
SuggestionBeanused to format option in select tag
-
isParentIssueInherited
Determines if parent issue is inherited from parentBulkEditBean.Parent issue is inherited from parent
BulkEditBeanwhen subtasks are processed and parent of processed subtasks is moved to subtask.- Parameters:
bulkEditBean- Currently processedBulkEditBean- Returns:
- true if parent issue should be inherited from parent
BulkEditBean, otherwise false
-
isParentSelectPresent
Determines if parent issue selector should be rendered.This method is used on choose context page to determine if parent issue selector should be rendered. It should be rendered always, except the step 2 of choose context when subtasks are handled since they inherit their parent issue from parent bulkEditBean
- Parameters:
bulkEditBean- Currently processedBulkEditBean- Returns:
- true if we want to render parent issue picker, false otherwise
-
getIssueKeys
Supply a comma separated list of issue keys to parent issue selector. Passed issues are excluded from selection since they are selected for bulk move.- Parameters:
bulkEditBean- Should be rootBulkEditBean because we need ass currently processing issues- Returns:
- coma separated list of issue keys
-
isFieldCopiedFromParent
Determines if the value of @orderableField for current @bulkEditBean is copied from new parent issue.- Parameters:
orderableField- Field in questionbulkEditBean- Currently processedBulkEditBean- Returns:
- true if checkbox should be disabled, otherwise false
-
isSubtaskToIssue
Determines if passedBulkEditBeanrepresents conversion from subtask to issue.- Parameters:
bulkEditBean- Currently processedBulkEditBean- Returns:
- true if passed
BulkEditBeanrepresents conversion from subtask to issue, false otherwise.
-
isIssueToSubtask
Determines if passedBulkEditBeanrepresents conversion from issue to subtask.- Parameters:
bulkEditBean- Currently processedBulkEditBean- Returns:
- true if passed
BulkEditBeanrepresents conversion from issue to subtask, false otherwise.
-
isSubtaskToSubtask
Determines if passedBulkEditBeanrepresents conversion from subtask to subtask.- Parameters:
bulkEditBean- Currently processedBulkEditBean- Returns:
- true if passed
BulkEditBeanrepresents conversion from subtask to subtask, false otherwise.
-
isAllowProjectEdit
Determines if passedBulkEditBeanshould be allowed to edit project.This should be disallowed for subtask of changed tasks (step2), but allowed for moved subtasks (step1).
- Overrides:
isAllowProjectEditin classBulkMove- Parameters:
bulkEditBean- Currently processedBulkEditBean- Returns:
- true is passed
BulkEditBeanshould be allowed to edit project, false otherwise.
-