Class LinkTestToJiraIssueAction

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanReadSecurityAware, PlanAware, ProjectAware, ResultsSummaryAware, ReturnUrlAware, UserAware, com.atlassian.core.i18n.I18nTextProvider, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable

public class LinkTestToJiraIssueAction extends PlanResultsAction
See Also:
  • Constructor Details

    • LinkTestToJiraIssueAction

      public LinkTestToJiraIssueAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • execute

      public String execute()
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
    • createIssueLinkData

      protected org.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 org.json.JSONObject buildLinkedJiraIssueJson(@NotNull @NotNull LinkedJiraIssue linkedJiraIssue) throws org.json.JSONException
      Throws:
      org.json.JSONException
    • buildJsonObject

      @NotNull public @NotNull org.json.JSONObject buildJsonObject() throws org.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:
      org.json.JSONException
    • getTestCaseId

      public long getTestCaseId()
    • setTestCaseId

      public void setTestCaseId(long testCaseId)
    • setManualIssueKey

      public void setManualIssueKey(String manualIssueKey)
    • getManualIssueKey

      public String getManualIssueKey()