Class LinkTestToJiraIssueAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanReadSecurityAware, PlanAware, ProjectAware, ResultsSummaryAware, 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

public class LinkTestToJiraIssueAction extends PlanResultsAction
See Also:
  • Constructor Details

    • LinkTestToJiraIssueAction

      public LinkTestToJiraIssueAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface com.opensymphony.xwork2.Validateable
      Overrides:
      validate in class com.opensymphony.xwork2.ActionSupport
    • execute

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

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

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

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

      protected void copyErrorsToActionWarnings(@NotNull @NotNull JiraRestResponse response)
    • buildLinkedJiraIssueJson

      @NotNull public static @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildLinkedJiraIssueJson(@NotNull @NotNull LinkedJiraIssue linkedJiraIssue) throws com.opensymphony.webwork.dispatcher.json.JSONException
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
    • buildJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly. If descending classes need to add anything to JSON response these should override this method.
      Overrides:
      buildJsonObject in class BambooActionSupport
      Returns:
      Initialized JSONObject
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
    • getTestCaseId

      public long getTestCaseId()
    • setTestCaseId

      public void setTestCaseId(long testCaseId)
    • setManualIssueKey

      public void setManualIssueKey(String manualIssueKey)
    • getManualIssueKey

      public String getManualIssueKey()