public class JiraIssueManagerImpl extends Object implements JiraIssueManager
Constructor and Description |
---|
JiraIssueManagerImpl(JiraApplinksService jiraApplinksService,
JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory,
JiraRemoteIssueManager jiraRemoteIssueManager) |
Modifier and Type | Method and Description |
---|---|
protected @NotNull Map<String,JiraIssueDetails> |
createJiraIssueDetails(@Nullable Project bambooProject,
@NotNull Set<String> issueKeys)
Create JiraIssueDetails for
|
<T extends InternalLinkedJiraIssue> |
getJiraIssueDetails(@Nullable Project bambooProject,
@NotNull Iterable<T> linkedJiraIssues)
Get issue details from JIRA via XML Search.
|
@NotNull JiraIssueDetails |
getJiraIssueDetails(@Nullable Project bambooProject,
@NotNull String issueKey)
Get issue details for a single issue.
|
public JiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager)
@NotNull public <T extends InternalLinkedJiraIssue> @NotNull Iterable<T> getJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull Iterable<T> linkedJiraIssues) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
JiraIssueManager
getJiraIssueDetails
in interface JiraIssueManager
bambooProject
- Bamboo project for which the search is executedlinkedJiraIssues
- JIRA issues to be completed with data fetched from JIRAIterable
of InternalLinkedJiraIssue
objects representing JIRA issues.CredentialsRequiredContextException
- In case applicationLink requires authentication in order to establish connection with JIRACredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
@NotNull public @NotNull JiraIssueDetails getJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull String issueKey) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
JiraIssueManager
getJiraIssueDetails
in interface JiraIssueManager
bambooProject
- Bamboo project for which the search is executedissueKey
- of the Issue to retrieveCredentialsRequiredContextException
- if oauth handshake requiredcom.atlassian.sal.api.net.ResponseException
CredentialsRequiredContextException
@NotNull protected @NotNull Map<String,JiraIssueDetails> createJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull Set<String> issueKeys) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
bambooProject
- Bamboo projectissueKeys
- Set of JIRA issue keys (it is not an Iterable since we perform a non-direct transformation)JiraIssueDetails
objectcom.atlassian.applinks.api.CredentialsRequiredException
- when remote JIRA operation requires authenticationCredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.