Class CreateIssue

All Implemented Interfaces:
OperationContext, ErrorCollection, I18nHelper, Assignable, IssueSummaryAware, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
CreateIssueDetails, CreateSubTaskIssue

public class CreateIssue extends AbstractIssueSelectAction implements Assignable, OperationContext
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault() throws Exception
      Overrides:
      doDefault in class webwork.action.ActionSupport
      Throws:
      Exception
    • getRedirectForCreateBypass

      protected String getRedirectForCreateBypass()
    • setHistoryIssuetype

      protected void setHistoryIssuetype(boolean projectChanged)
    • doValidation

      protected void doValidation()
      Overrides:
      doValidation in class webwork.action.ActionSupport
    • validateIssueType

      protected void validateIssueType()
    • doExecute

      protected String doExecute() throws Exception
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Throws:
      Exception
    • getIssueObject

      public MutableIssue getIssueObject()
      Description copied from class: AbstractIssueSelectAction
      Returns the current Issue. This method performs the same security checks as AbstractIssueSelectAction.getIssue().
      Overrides:
      getIssueObject in class AbstractIssueSelectAction
      Returns:
      The current issue.
      See Also:
    • recordHistoryIssueType

      protected void recordHistoryIssueType()
    • getAllowedProjects

      public Collection<Project> getAllowedProjects()
    • isAbleToCreateIssueInSelectedProject

      public boolean isAbleToCreateIssueInSelectedProject()
    • getPid

      public Long getPid()
    • setPid

      public void setPid(Long pid)
    • getProjectObject

      public Project getProjectObject()
      Overrides:
      getProjectObject in class AbstractIssueSelectAction
    • getIssuetype

      public String getIssuetype()
    • setIssuetype

      public void setIssuetype(String issueType)
    • getIssueType

      public IssueType getIssueType()
    • getAssignee

      public String getAssignee()
      Deprecated.
      This is just a 'niceness' method so that the default assignee selected on the next page, if assignees are allowed, is the project lead.
      Specified by:
      getAssignee in interface Assignable
    • setAssignee

      public void setAssignee(String assignee)
      Deprecated.
      Specified by:
      setAssignee in interface Assignable
    • getFieldScreenRenderTabs

      public List getFieldScreenRenderTabs()
    • getFieldScreenRenderer

      protected FieldScreenRenderer getFieldScreenRenderer()
    • getAssignIn

      public Project getAssignIn() throws Exception
      Specified by:
      getAssignIn in interface Assignable
      Throws:
      Exception
    • populateFieldHolderWithDefaults

      protected void populateFieldHolderWithDefaults(Issue issue, Collection excludedFieldIds)
    • getCustomFields

      public List<CustomField> getCustomFields(Issue issue)
    • getFieldValuesHolder

      public Map<String,Object> getFieldValuesHolder()
      Specified by:
      getFieldValuesHolder in interface OperationContext
    • getIssueOperation

      public IssueOperation getIssueOperation()
      Specified by:
      getIssueOperation in interface OperationContext
    • getButtons

      public List<CreateIssue.ButtonHolder> getButtons() throws WorkflowException
      Returns a list of CreateIssue.ButtonHolders for submit buttons required in addition to the standard 'submit' button.
      Throws:
      WorkflowException
    • hasProjectPermission

      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.
      Specified by:
      hasProjectPermission in interface AuthorizationSupport
      Overrides:
      hasProjectPermission in class JiraWebActionSupport
      Parameters:
      permissionsId - the permission type
      project - the Project
      Returns:
      true if the logged in user has the given permission type on the given Project.
    • getTabsWithErrors

      public Collection getTabsWithErrors()
    • getSelectedTab

      public int getSelectedTab()
    • getIgnoreFieldIds

      public Collection getIgnoreFieldIds()
    • getSubmitButtonName

      public String getSubmitButtonName()
      Form submit button's i18n'ed name. Usually 'Create', but possibly overridden in workflow.
    • getIssueTypesForProject

      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
    • getDisplayParams

      public Map<String,Object> getDisplayParams()