public class

MoveIssueUpdateWorkflow

extends MoveIssue
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.enterprise.MoveIssueUpdateWorkflow

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
MoveIssueUpdateWorkflow(SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, UserUtil userUtil)
Public Methods
String doDefault()
Handles the initial request to move an issue.
void doValidation()
String getFieldHtml(FieldLayoutItem fieldLayoutItem)
JiraWorkflow getSubTaskTargetWorkflow(String subTaskTypeID)
JiraWorkflow getSubtaskTargetWorkflow(String subtaskIssueType)
Get the "target workflow" for a subtask issue type.
Collection<JiraWorkflow> getTargetWorkflows()
JiraWorkflow getTaskCurrentWorkflow(GenericValue taskType)
Collection<JiraWorkflow> getTaskCurrentWorkflows()
Collection<IssueType> getTaskInvalidTypes()
JiraWorkflow getTaskTargetWorkflow(GenericValue taskType)
Collection getTasksByStatusWorkflowType(String statusId, JiraWorkflow workflow, String typeId)
Protected Methods
String doExecute()
Handles the request to submit the input from the first step of the wizard, the submitted information is the target project and the target issue type.
Issue getTargetIssueObject()
[Expand]
Inherited Methods
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 MoveIssueUpdateWorkflow (SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, 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 void doValidation ()

public String getFieldHtml (FieldLayoutItem fieldLayoutItem)

public JiraWorkflow getSubTaskTargetWorkflow (String subTaskTypeID)

public JiraWorkflow getSubtaskTargetWorkflow (String subtaskIssueType)

Get the "target workflow" for a subtask issue type. Currently this is used solely to display the correct target workflow name in moveissue-updateworkflow.jsp

Parameters
subtaskIssueType the subtask issue type id
Returns
  • the workflow associated with the target issue type

public Collection<JiraWorkflow> getTargetWorkflows ()

public JiraWorkflow getTaskCurrentWorkflow (GenericValue taskType)

Throws
GenericEntityException
WorkflowException

public Collection<JiraWorkflow> getTaskCurrentWorkflows ()

Throws
GenericEntityException
WorkflowException

public Collection<IssueType> getTaskInvalidTypes ()

public JiraWorkflow getTaskTargetWorkflow (GenericValue taskType)

public Collection getTasksByStatusWorkflowType (String statusId, JiraWorkflow workflow, String typeId)

Throws
GenericEntityException
WorkflowException

Protected Methods

protected String doExecute ()

Handles the request to submit the input from the first step of the wizard, the submitted information is the target project and the target issue type.

If the issue has sub-tasks it redirects to doDefault() so that the tasks issue types can be mapped; otherwise, it redirects to doDefault()

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()

protected Issue getTargetIssueObject ()