Class LinkTestToJiraIssueAction

    • Constructor Detail

      • LinkTestToJiraIssueAction

        public LinkTestToJiraIssueAction()
    • Method Detail

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