Interface SIssueProvider

    • Method Detail

      • findPossiblyExpiredIssue

        @Nullable
        IssueData findPossiblyExpiredIssue​(@NotNull
                                           java.lang.String id)
        Returns the issue data corresponding to the id.

        The main difference from IssueProvider.findIssueById(String) method is that method must be always fast (should use only cached data) and the result data isn't expected to be up-to-date. So this method should return the issue data if by chance it can be retrieved fast, even if a provider considers it out-dated and IssueProvider.findIssueById(String) method would make an extra call to the issue-tracking system.

        The simplest (100% legal) implementation of this method:

            public IssueData findPossiblyExpiredIssue(@NotNull String id) {
              return null;
            }
         
        This way TeamCity will always show 'Retrieving...' message, when the issue isn't fetched (see isFetched(String)).
        Parameters:
        id - the issue id
        Returns:
        issue data, or null if the it cannot be returned efficiently
      • isFailedToFetch

        boolean isFailedToFetch​(@NotNull
                                java.lang.String id)
        Returns whether the issue could not be fetched due to error.

        In case of true, the issue data isn't in a cache (i.e. isFetched(id) == false), but the error is.

        Parameters:
        id - the issue id
        Returns:
        true if issue could not be fetched
        Since:
        7.1
        See Also:
        isFetched(String)
      • getTestConnectionSupport

        @NotNull
        IssueTestConnectionSupport getTestConnectionSupport()
        Returns the test connection support.
        Returns:
        test connection support
      • getAdditionalTestData

        @Nullable
        default AdditionalIssueData getAdditionalTestData​(java.lang.String issueId,
                                                          java.lang.String projectExternalId)
      • getConfigurationSummary

        @Nullable
        java.lang.String getConfigurationSummary()
        Returns the basic summary of current configuration, for instance, "Jira" provider might return: "Projects: P1, P2".
        Returns:
        provider configuration summary, or null