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<Project> getAllowedProjects()
Project getAssignIn()
String getAssignee()
This method is deprecated. No replacement.
List<CreateIssue.ButtonHolder> 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()
IssueType getIssueType()
String getIssuetype()
Long getPid()
Project getProjectObject()
int getSelectedTab()
String getSubmitButtonName()
Form submit button's i18n'ed name.
Collection getTabsWithErrors()
boolean hasProjectPermission(int permissionsId, Project project)
boolean isAbleToCreateIssueInSelectedProject()
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<Project> getAllowedProjects ()

public Project 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<CreateIssue.ButtonHolder> 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 IssueType getIssueType ()

public String getIssuetype ()

public Long getPid ()

public Project getProjectObject ()

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 method is deprecated.
Use hasProjectPermission(com.atlassian.jira.security.plugin.ProjectPermissionKey, com.atlassian.jira.project.Project) instead. Since v6.4.

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