public class

ConvertSubTaskToIssue

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.ConvertSubTaskToIssue

Class Overview

Main action for converting Sub-tasks into Issues 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
ConvertSubTaskToIssue(SubTaskToIssueConversionService service, IssueManager issueManager, IssueTypeSchemeManager issueTypeSchemeManager, FieldLayoutManager fieldLayoutManager, ConstantsManager constantsManager, WorkflowManager workflowManager, RendererManager rendererManager, IssueFactory issueFactory, PermissionManager permissionManager)
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.
Protected Methods
MutableIssue getTargetIssueObjectWithSecurityLevel()
Get the issue with updated Issue type and status.
void initExtraFields(ConvertIssueBean bean, JiraServiceContext context)
Allows subclasses to set and init own fields.
[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 ConvertSubTaskToIssue (SubTaskToIssueConversionService service, IssueManager issueManager, IssueTypeSchemeManager issueTypeSchemeManager, FieldLayoutManager fieldLayoutManager, ConstantsManager constantsManager, WorkflowManager workflowManager, RendererManager rendererManager, IssueFactory issueFactory, PermissionManager permissionManager)

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

Protected Methods

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)

Allows subclasses to set and init own fields. E.g. ConvertIssueToSubTask sets parent id.

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