public IssueData getIssue()

in TeamCity.BitBucketIssues-server/src/main/java/jetbrains/buildServer/issueTracker/bitbucket/BitBucketIssueFetcher.java [47:58]


  public IssueData getIssue(@NotNull String host, @NotNull String id, @Nullable Credentials credentials) throws Exception {
    //here host == sanitized fetchHost
    final String issueId = getIssueId(id);
    final String issueURL = host + issueId;
    return getFromCacheOrFetch(issueURL, () -> {
      SimpleCredentials simpleCredentials = IssueFetcherUtil
        .retrieveCredentials(new BasicIssueFetcherAuthenticator(credentials));
      KeyStore trustStore = mySslTrustStoreProvider.getTrustStore();
      InputStream body = getHttpFile(issueURL, simpleCredentials, true, trustStore);
      return myParser.parse(IOUtils.toString(body, "UTF-8"));
    });
  }