public class

MoveIssueConfirm

extends MoveIssueUpdateFields
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.ProjectActionSupport
           ↳ com.atlassian.jira.web.action.IssueActionSupport
             ↳ com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
               ↳ com.atlassian.jira.web.action.issue.AbstractViewIssue
                 ↳ com.atlassian.jira.web.action.issue.AbstractCommentableIssue
                   ↳ com.atlassian.jira.web.action.issue.AbstractCommentableAssignableIssue
                     ↳ com.atlassian.jira.web.action.issue.MoveIssue
                       ↳ com.atlassian.jira.web.action.issue.MoveIssueUpdateFields
                         ↳ com.atlassian.jira.web.action.issue.MoveIssueConfirm

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.MoveIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.MoveIssue
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
MoveIssueConfirm(SubTaskManager subTaskManager, AttachmentManager attachmentManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutmanager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, IssueSecurityHelper issueSecurityHelper, IssueManager issueManager, UserUtil userUtil)
Public Methods
String doDefault()
Handles the initial request to move an issue.
Collection getConfimationFieldLayoutItems()
String getNewViewHtml(OrderableField field)
String getOldViewHtml(OrderableField field)
String getPrefixCustomFieldId(String key)
Collection getRemoveFields()
GenericValue getTargetStatusGV()
boolean isConfirm()
boolean isIssueTypeMatch()
boolean isProjectMatch()
boolean isStatusMatch()
void setConfirm(boolean confirm)
Protected Methods
String doExecute()
Actually does the moving of the issue from one Project/Issue Type to another
void doValidation()
MutableIssue getTargetIssueObject()
Retrieves the issue from the IssueManager and updates the Project and IssueType, and possibly clears the security.
void migrateIssueToWorkflow(GenericValue issue, String oldIssueType, JiraWorkflow targetWorkflow, GenericValue targetStatus)
Migrate the specified issue to the specified workflow, specified status and target type.
void popluateDefault(OrderableField orderableField)
void populateFromParams(OrderableField orderableField)
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.MoveIssueUpdateFields
From class com.atlassian.jira.web.action.issue.MoveIssue
From class com.atlassian.jira.web.action.issue.AbstractCommentableAssignableIssue
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractViewIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.OperationContext
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.issue.Assignable
From interface com.atlassian.jira.web.action.issue.IssueSummaryAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public MoveIssueConfirm (SubTaskManager subTaskManager, AttachmentManager attachmentManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutmanager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, IssueSecurityHelper issueSecurityHelper, IssueManager issueManager, UserUtil userUtil)

Public Methods

public String doDefault ()

Handles the initial request to move an issue. It returns the view responsible for rendering the first step of the wizard, if the user is authorised to perform the move and if the issue exists.

Returns
  • "securitybreach" if the user is not authorised to move the issue; ERROR if the issue can't be found (which means it was probably deleted), or if the user isn't authorised to browse the issue; otherwise, INPUT} is returned to render the view for the first step of the wizard.

public Collection getConfimationFieldLayoutItems ()

public String getNewViewHtml (OrderableField field)

public String getOldViewHtml (OrderableField field)

public String getPrefixCustomFieldId (String key)

Throws
GenericEntityException

public Collection getRemoveFields ()

public GenericValue getTargetStatusGV ()

public boolean isConfirm ()

public boolean isIssueTypeMatch ()

Throws
GenericEntityException

public boolean isProjectMatch ()

Throws
GenericEntityException

public boolean isStatusMatch ()

public void setConfirm (boolean confirm)

Protected Methods

protected String doExecute ()

Actually does the moving of the issue from one Project/Issue Type to another

Returns
  • It actually doesn't return anything. If the issue has sub-tasks it redirects to doDefault() so that the tasks issue types can be mapped; otherwise, it redirects to doDefault()
Throws
Exception

protected void doValidation ()

protected MutableIssue getTargetIssueObject ()

Retrieves the issue from the IssueManager and updates the Project and IssueType, and possibly clears the security.

JRA-11605 - we need this method so that the display can prompt the user with values from system fields that are unencumbered by security level permission checks. It will set security level to null if the issue is moving somewhere that the old security level is no relevant.

Returns
  • Target Issue Object with required Project and Issue Type added in.

protected void migrateIssueToWorkflow (GenericValue issue, String oldIssueType, JiraWorkflow targetWorkflow, GenericValue targetStatus)

Migrate the specified issue to the specified workflow, specified status and target type.

Parameters
issue - the issue to migrate - should be the issue that will be changed
oldIssueType - the old issue type of the issue
targetWorkflow - the destination workflow
targetStatus - the destination status
Throws
GenericEntityException

protected void popluateDefault (OrderableField orderableField)

protected void populateFromParams (OrderableField orderableField)