public class

ConvertIssueToSubTask

extends AbstractConvertIssue
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.issue.AbstractConvertIssue
           ↳ com.atlassian.jira.web.action.issue.ConvertIssueToSubTask

Class Overview

Main action for converting Issue to sub-task All do* methods in AbstractConvertIssue

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractConvertIssue
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected String parentIssueKey
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractConvertIssue
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
ConvertIssueToSubTask(IssueToSubTaskConversionService service, IssueManager issueManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, PermissionManager permissionManager, IssueTypeSchemeManager issueTypeSchemeManager, IssueFactory issueFactory)
Public Methods
String getActionPrefix()
Prefix used for jsps Actions.
Collection getAvailableIssueTypes()
Gets a collection of IssueType that are the available target Issue Types.
String getPropertiesPrefix()
Prefix used for i18n properties.
void setParentIssueKey(String issueKey)
Protected Methods
ConvertIssueBean getBean()
Retrieves the wizard bean from the session.
MutableIssue getTargetIssueObjectWithSecurityLevel()
Get the issue with updated Issue type and status.
void initExtraFields(ConvertIssueBean bean, JiraServiceContext context)
Set the parent issue on the bean.
void validateStep1(JiraServiceContextImpl context)
Validates the first step of the wizard, subclasses can override to extend validation
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractConvertIssue
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.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Fields

protected String parentIssueKey

Public Constructors

public ConvertIssueToSubTask (IssueToSubTaskConversionService service, IssueManager issueManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, PermissionManager permissionManager, IssueTypeSchemeManager issueTypeSchemeManager, IssueFactory issueFactory)

Public Methods

public String getActionPrefix ()

Prefix used for jsps Actions. Allows the same jsp to be used for different actions

Returns
  • subclass specific action prefix

public Collection getAvailableIssueTypes ()

Gets a collection of IssueType that are the available target Issue Types.

Returns

public String getPropertiesPrefix ()

Prefix used for i18n properties. Allows the same jsp to be used for different actions

Returns
  • subclass specific properties prefix

public void setParentIssueKey (String issueKey)

Protected Methods

protected ConvertIssueBean getBean ()

Retrieves the wizard bean from the session. Never returns null, if no bean is found new one is created and stored in the session.

Returns
  • wizard bean

protected MutableIssue getTargetIssueObjectWithSecurityLevel ()

Get the issue with updated Issue type and status. Subclasses can over-ride if they need to set their own fields. E.g Issue to sub-task conversion sets the new parent issue. Security level remains intact.

Returns
  • Cloned issue with updated issue ype and status

protected void initExtraFields (ConvertIssueBean bean, JiraServiceContext context)

Set the parent issue on the bean.

Parameters
bean bean that holds params.
context jira service context.

protected void validateStep1 (JiraServiceContextImpl context)

Validates the first step of the wizard, subclasses can override to extend validation

Parameters
context jira service context