public class

CreateIssue

extends AbstractIssueSelectAction
implements OperationContext Assignable
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.CreateIssue
Known Direct Subclasses
Known Indirect Subclasses

Summary

Nested Classes
class CreateIssue.ButtonHolder struct for holding name:value string pairs. 
[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected Map<StringObject> fieldValuesHolder
protected final IssueCreationHelperBean issueCreationHelperBean
[Expand]
Inherited Fields
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
CreateIssue(IssueFactory issueFactory, IssueCreationHelperBean issueCreationHelperBean)
Public Methods
String doDefault()
Collection getAllowedProjects()
GenericValue getAssignIn()
String getAssignee()
This method is deprecated. No replacement.
List getButtons()
Returns a list of CreateIssue.ButtonHolders for submit buttons required in addition to the standard 'submit' button.
List<CustomField> getCustomFields(Issue issue)
Map<StringObject> getDisplayParams()
List getFieldScreenRenderTabs()
Map<StringObject> getFieldValuesHolder()
Collection getIgnoreFieldIds()
MutableIssue getIssueObject()
Returns the current Issue.
IssueOperation getIssueOperation()
GenericValue getIssueTypeGV()
String getIssuetype()
Long getPid()
GenericValue getProject()
int getSelectedTab()
String getSubmitButtonName()
Form submit button's i18n'ed name.
Collection getTabsWithErrors()
boolean hasProjectPermission(int permissionsId, Project project)
This is a special case where the has permissions should be informed that a new Issue is being created.
boolean isAbleToCreateIssueInSelectedProject()
boolean isHasProjectPermission(int permissionsId, GenericValue project)
This method is deprecated. Use hasProjectPermission(int, com.atlassian.jira.project.Project) instead. Since v6.0.
void setAssignee(String assignee)
This method is deprecated. No replacement.
void setIssuetype(String issueType)
void setPid(Long pid)
Protected Methods
String doExecute()
void doValidation()
FieldScreenRenderer getFieldScreenRenderer()
Collection getIssueTypesForProject(Project project)
Returns a collection of non-sub-task issue types for the given project.
String getRedirectForCreateBypass()
void populateFieldHolderWithDefaults(Issue issue, Collection excludedFieldIds)
void recordHistoryIssueType()
void setHistoryIssuetype()
void validateIssueType()
[Expand]
Inherited Methods
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

Fields

protected Map<StringObject> fieldValuesHolder

protected final IssueCreationHelperBean issueCreationHelperBean

Public Constructors

public CreateIssue (IssueFactory issueFactory, IssueCreationHelperBean issueCreationHelperBean)

Public Methods

public String doDefault ()

Throws
Exception

public Collection getAllowedProjects ()

public GenericValue getAssignIn ()

Throws
Exception

public String getAssignee ()

This method is deprecated.
No replacement.

This is just a 'niceness' method so that the default assignee selected on the next page, if assignees are allowed, is the project lead.

public List getButtons ()

Returns a list of CreateIssue.ButtonHolders for submit buttons required in addition to the standard 'submit' button.

public List<CustomField> getCustomFields (Issue issue)

public Map<StringObject> getDisplayParams ()

public List getFieldScreenRenderTabs ()

public Map<StringObject> getFieldValuesHolder ()

public Collection getIgnoreFieldIds ()

public MutableIssue getIssueObject ()

Returns the current Issue. This method performs the same security checks as getIssue().

Returns
  • The current issue.

public IssueOperation getIssueOperation ()

public GenericValue getIssueTypeGV ()

public String getIssuetype ()

public Long getPid ()

public GenericValue getProject ()

public int getSelectedTab ()

public String getSubmitButtonName ()

Form submit button's i18n'ed name. Usually 'Create', but possibly overridden in workflow.

public Collection getTabsWithErrors ()

public boolean hasProjectPermission (int permissionsId, Project project)

This is a special case where the has permissions should be informed that a new Issue is being created.

Parameters
permissionsId the permission type
project the Project
Returns
  • true if the logged in user has the given permission type on the given Project.

public boolean isAbleToCreateIssueInSelectedProject ()

public boolean isHasProjectPermission (int permissionsId, GenericValue project)

This method is deprecated.
Use hasProjectPermission(int, com.atlassian.jira.project.Project) instead. Since v6.0.

This is a special case where the has permissions should be informed that a new Issue is being created.

Parameters
permissionsId the permission type
project the Project
Returns
  • true if the logged in user has the given permission type on the given Project.

public void setAssignee (String assignee)

This method is deprecated.
No replacement.

public void setIssuetype (String issueType)

public void setPid (Long pid)

Protected Methods

protected String doExecute ()

Throws
Exception

protected void doValidation ()

protected FieldScreenRenderer getFieldScreenRenderer ()

protected Collection getIssueTypesForProject (Project project)

Returns a collection of non-sub-task issue types for the given project.

Parameters
project project to get the issue types for
Returns
  • a collection of non-sub-task issue types for the given project

protected String getRedirectForCreateBypass ()

protected void populateFieldHolderWithDefaults (Issue issue, Collection excludedFieldIds)

protected void recordHistoryIssueType ()

protected void setHistoryIssuetype ()

protected void validateIssueType ()