public class JiraIssueManagerImpl extends Object implements JiraIssueManager
Constructor and Description |
---|
JiraIssueManagerImpl(JiraApplinksService jiraApplinksService,
JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory,
JiraRemoteIssueManager jiraRemoteIssueManager) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,JiraIssueDetails> |
createJiraIssueDetails(Project bambooProject,
Set<String> issueKeys)
Create JiraIssueDetails for
|
<T extends InternalLinkedJiraIssue> |
getJiraIssueDetails(Project bambooProject,
Iterable<T> linkedJiraIssues)
Get issue details from JIRA via XML Search.
|
JiraIssueDetails |
getJiraIssueDetails(Project bambooProject,
String issueKey)
Get issue details for a single issue.
|
public JiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager)
@NotNull public <T extends InternalLinkedJiraIssue> Iterable<T> getJiraIssueDetails(@Nullable Project bambooProject, @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 JiraIssueDetails getJiraIssueDetails(@Nullable Project bambooProject, @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 Map<String,JiraIssueDetails> createJiraIssueDetails(@Nullable Project bambooProject, @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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.