Class AbstractCreateNewJiraIssueAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.ww2.actions.jira.AbstractJiraIssueAction
com.atlassian.bamboo.ww2.actions.jira.AbstractCreateNewJiraIssueAction
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
CreateNewJiraIssueForBuildResultAction, CreateNewJiraIssueForTestAction

public abstract class AbstractCreateNewJiraIssueAction extends AbstractJiraIssueAction
See Also:
  • Field Details

  • Constructor Details

    • AbstractCreateNewJiraIssueAction

      public AbstractCreateNewJiraIssueAction()
  • Method Details

    • getJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      This is default property read by webwork for webwork's result type "json".
      Overrides:
      getJsonObject in class BambooActionSupport
      Returns:
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
      See Also:
      • JSON Result

        If descending classes need to add anything to JSON response these should override #buildJsonObject() method.

    • input

      public String input() throws Exception
      Overrides:
      input in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • createIssueLinkData

      protected abstract com.opensymphony.webwork.dispatcher.json.JSONObject createIssueLinkData(@NotNull @NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull @NotNull String issueKey, @NotNull @NotNull ResultsSummary resultsSummary) throws Exception
      Throws:
      Exception
    • addIssueLinkFromJiraIssueToThisBuildResult

      protected void addIssueLinkFromJiraIssueToThisBuildResult(@NotNull @NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull @NotNull String issueKey, @NotNull @NotNull ResultsSummary resultsSummary) throws Exception
      Throws:
      Exception
    • getBuildPlanResultName

      protected String getBuildPlanResultName(ResultsSummary buildSummary)
    • convertBuildStateToIconFileName

      protected String convertBuildStateToIconFileName(@NotNull @NotNull ResultsSummary resultsSummary)
    • getResultsSummary

      protected ResultsSummary getResultsSummary()
    • getJiraProjects

      public List<String> getJiraProjects()
    • getJiraIssueTypes

      public List<String> getJiraIssueTypes()
    • getSummary

      public String getSummary()
    • setSummary

      public void setSummary(String summary)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getIssuetype

      public String getIssuetype()
    • setIssuetype

      public void setIssuetype(String issueType)
    • getProject

      public String getProject()
    • setProject

      public void setProject(String project)
    • getComponents

      public List<Long> getComponents()
    • setComponents

      public void setComponents(List<String> components)
    • getVersions

      public List<Long> getVersions()
    • setVersions

      public void setVersions(List<String> versions)