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.MessageType
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BulkMigrateOperation
protected final IssueService
protected final com.atlassian.webresource.api.assembler.PageBuilderService
Fields inherited from class com.atlassian.jira.web.action.issue.bulkedit.BulkMove
bulkMoveOperation, constantsManager, fieldManager, issueFactory, permissionManager, workflowManager
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
Fields 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 BulkMigrateOperation
getIssueKeys
(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) boolean
isAllowProjectEdit
(BulkEditBean bulkEditBean) Determines if passedBulkEditBean
should be allowed to edit project.boolean
isFieldCopiedFromParent
(OrderableField orderableField, BulkEditBean bulkEditBean) Determines if the value of @orderableField for current @bulkEditBean is copied from new parent issue.boolean
isIssueToSubtask
(BulkEditBean bulkEditBean) Determines if passedBulkEditBean
represents conversion from issue to subtask.boolean
isParentIssueInherited
(BulkEditBean bulkEditBean) Determines if parent issue is inherited from parentBulkEditBean
.boolean
isParentSelectPresent
(BulkEditBean bulkEditBean) Determines if parent issue selector should be rendered.boolean
isSubtaskToIssue
(BulkEditBean bulkEditBean) Determines if passedBulkEditBean
represents conversion from subtask to issue.boolean
isSubtaskToSubtask
(BulkEditBean bulkEditBean) Determines if passedBulkEditBean
represents conversion from subtask to subtask.void
setSameAsBulkEditBean
(String sameAsBulkEditBean) void
setSingleIssueId
(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, setSubTaskPhase
Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
submitBulkOperationTask
Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
clearBulkEditBean, finishWizard, getColumns, getIssueTableLayoutBean, getRedirect, getRootBulkEditBean, isCanDisableMailNotifications, isSendBulkNotification, redirectToStart, setSendBulkNotification, storeBulkEditBean, storeReturnUrl, watchProgress
Methods 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, updateSearchRequest
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
Methods 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, 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, urlEncode
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
Methods 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:
getBulkEditBean
in classBulkMove
-
getMultiBulkMoveBean
-
getCurrentIssueContext
-
getNameTranslation
-
getCurrentRootBulkEditBean
-
getOperationDetailsActionName
- Overrides:
getOperationDetailsActionName
in classBulkMove
-
getprojectFieldName
-
getIssueParentFieldName
-
getSameAsBulkEditBean
-
setSameAsBulkEditBean
-
getBulkMigrateOperation
-
getRedirectUrl
- Overrides:
getRedirectUrl
in classAbstractBulkOperationAction
- Throws:
Exception
-
getSingleIssueId
-
setSingleIssueId
-
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:
SuggestionBean
used to format option in select tag
-
isParentIssueInherited
Determines if parent issue is inherited from parentBulkEditBean
.Parent issue is inherited from parent
BulkEditBean
when 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 passedBulkEditBean
represents conversion from subtask to issue.- Parameters:
bulkEditBean
- Currently processedBulkEditBean
- Returns:
- true if passed
BulkEditBean
represents conversion from subtask to issue, false otherwise.
-
isIssueToSubtask
Determines if passedBulkEditBean
represents conversion from issue to subtask.- Parameters:
bulkEditBean
- Currently processedBulkEditBean
- Returns:
- true if passed
BulkEditBean
represents conversion from issue to subtask, false otherwise.
-
isSubtaskToSubtask
Determines if passedBulkEditBean
represents conversion from subtask to subtask.- Parameters:
bulkEditBean
- Currently processedBulkEditBean
- Returns:
- true if passed
BulkEditBean
represents conversion from subtask to subtask, false otherwise.
-
isAllowProjectEdit
Determines if passedBulkEditBean
should be allowed to edit project.This should be disallowed for subtask of changed tasks (step2), but allowed for moved subtasks (step1).
- Overrides:
isAllowProjectEdit
in classBulkMove
- Parameters:
bulkEditBean
- Currently processedBulkEditBean
- Returns:
- true is passed
BulkEditBean
should be allowed to edit project, false otherwise.
-