All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
MigrateIssueTypes

public class BulkMigrate extends BulkMove
See Also:
  • Field Details

    • bulkMigrateOperation

      protected final BulkMigrateOperation bulkMigrateOperation
    • pageBuilderService

      protected final com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService
    • issueService

      protected final IssueService issueService
  • Constructor Details

  • Method Details

    • doDetails

      public String doDetails()
      Overrides:
      doDetails in class BulkMove
    • doStart

      public String doStart() throws Exception
      Throws:
      Exception
    • doChooseContext

      public String doChooseContext() throws Exception
      Throws:
      Exception
    • doChooseSubTaskContext

      public String doChooseSubTaskContext() throws Exception
      Throws:
      Exception
    • doChooseStatus

      public String doChooseStatus() throws Exception
      Throws:
      Exception
    • doSetFields

      public String doSetFields() throws Exception
      Throws:
      Exception
    • doPerform

      public String doPerform() throws Exception
      Overrides:
      doPerform in class BulkMove
      Throws:
      Exception
    • getBulkEditBean

      public BulkEditBean getBulkEditBean()
      Overrides:
      getBulkEditBean in class BulkMove
    • getMultiBulkMoveBean

      public MultiBulkMoveBean getMultiBulkMoveBean()
    • getCurrentIssueContext

      public IssueContext getCurrentIssueContext()
    • getNameTranslation

      public String getNameTranslation(IssueType issueType)
    • getCurrentRootBulkEditBean

      public BulkEditBean getCurrentRootBulkEditBean()
    • getOperationDetailsActionName

      public String getOperationDetailsActionName()
      Overrides:
      getOperationDetailsActionName in class BulkMove
    • getprojectFieldName

      public String getprojectFieldName(BulkEditBean bulkEditBean)
    • getIssueParentFieldName

      public String getIssueParentFieldName(BulkEditBean bulkEditBean)
    • getSameAsBulkEditBean

      public String getSameAsBulkEditBean()
    • setSameAsBulkEditBean

      public void setSameAsBulkEditBean(String sameAsBulkEditBean)
    • getBulkMigrateOperation

      protected BulkMigrateOperation getBulkMigrateOperation()
    • getRedirectUrl

      public String getRedirectUrl() throws Exception
      Overrides:
      getRedirectUrl in class AbstractBulkOperationAction
      Throws:
      Exception
    • getSingleIssueId

      public Long getSingleIssueId()
      See Also:
    • setSingleIssueId

      public void setSingleIssueId(Long singleIssueId)
      See Also:
    • getIssuepickerDataSuggestion

      public SuggestionBean getIssuepickerDataSuggestion(String currentIssueKey)
      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

      public boolean isParentIssueInherited(BulkEditBean bulkEditBean)
      Determines if parent issue is inherited from parent BulkEditBean.

      Parent issue is inherited from parent BulkEditBean when subtasks are processed and parent of processed subtasks is moved to subtask.

      Parameters:
      bulkEditBean - Currently processed BulkEditBean
      Returns:
      true if parent issue should be inherited from parent BulkEditBean, otherwise false
    • isParentSelectPresent

      public boolean isParentSelectPresent(BulkEditBean bulkEditBean)
      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 processed BulkEditBean
      Returns:
      true if we want to render parent issue picker, false otherwise
    • getIssueKeys

      public String getIssueKeys(BulkEditBean bulkEditBean)
      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

      public boolean isFieldCopiedFromParent(OrderableField orderableField, BulkEditBean bulkEditBean)
      Determines if the value of @orderableField for current @bulkEditBean is copied from new parent issue.
      Parameters:
      orderableField - Field in question
      bulkEditBean - Currently processed BulkEditBean
      Returns:
      true if checkbox should be disabled, otherwise false
    • isSubtaskToIssue

      public boolean isSubtaskToIssue(BulkEditBean bulkEditBean)
      Determines if passed BulkEditBean represents conversion from subtask to issue.
      Parameters:
      bulkEditBean - Currently processed BulkEditBean
      Returns:
      true if passed BulkEditBean represents conversion from subtask to issue, false otherwise.
    • isIssueToSubtask

      public boolean isIssueToSubtask(BulkEditBean bulkEditBean)
      Determines if passed BulkEditBean represents conversion from issue to subtask.
      Parameters:
      bulkEditBean - Currently processed BulkEditBean
      Returns:
      true if passed BulkEditBean represents conversion from issue to subtask, false otherwise.
    • isSubtaskToSubtask

      public boolean isSubtaskToSubtask(BulkEditBean bulkEditBean)
      Determines if passed BulkEditBean represents conversion from subtask to subtask.
      Parameters:
      bulkEditBean - Currently processed BulkEditBean
      Returns:
      true if passed BulkEditBean represents conversion from subtask to subtask, false otherwise.
    • isAllowProjectEdit

      public boolean isAllowProjectEdit(BulkEditBean bulkEditBean)
      Determines if passed BulkEditBean 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 class BulkMove
      Parameters:
      bulkEditBean - Currently processed BulkEditBean
      Returns:
      true is passed BulkEditBean should be allowed to edit project, false otherwise.