Class JiraIssueManagerImpl
java.lang.Object
com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl
- All Implemented Interfaces:
JiraIssueManager
-
Constructor Summary
ConstructorsConstructorDescriptionJiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull Map<String,JiraIssueDetails> createJiraIssueDetails(@Nullable Project bambooProject, @NotNull Set<String> issueKeys) Create JiraIssueDetails for<T extends InternalLinkedJiraIssue>
@NotNull Iterable<T>getJiraIssueDetails(@Nullable Project bambooProject, @NotNull Iterable<T> linkedJiraIssues) Get issue details from JIRA via XML Search.@NotNull JiraIssueDetailsgetJiraIssueDetails(@Nullable Project bambooProject, @NotNull String issueKey) Get issue details for a single issue.
-
Constructor Details
-
JiraIssueManagerImpl
public JiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager)
-
-
Method Details
-
getJiraIssueDetails
@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 Description copied from interface:JiraIssueManagerGet issue details from JIRA via XML Search.- Specified by:
getJiraIssueDetailsin interfaceJiraIssueManager- Parameters:
bambooProject- Bamboo project for which the search is executedlinkedJiraIssues- JIRA issues to be completed with data fetched from JIRA- Returns:
IterableofInternalLinkedJiraIssueobjects representing JIRA issues.- Throws:
CredentialsRequiredContextException- In case applicationLink requires authentication in order to establish connection with JIRAcom.atlassian.sal.api.net.ResponseException
-
getJiraIssueDetails
@NotNull public @NotNull JiraIssueDetails getJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull String issueKey) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException Description copied from interface:JiraIssueManagerGet issue details for a single issue.- Specified by:
getJiraIssueDetailsin interfaceJiraIssueManager- Parameters:
bambooProject- Bamboo project for which the search is executedissueKey- of the Issue to retrieve- Returns:
- Jira Issue Details retrieved from JIRA, if issue was found, and user has permission to see it
- Throws:
CredentialsRequiredContextException- if oauth handshake requiredcom.atlassian.sal.api.net.ResponseException
-
createJiraIssueDetails
@NotNull protected @NotNull Map<String,JiraIssueDetails> createJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull Set<String> issueKeys) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException Create JiraIssueDetails for- Parameters:
bambooProject- Bamboo projectissueKeys- Set of JIRA issue keys (it is not an Iterable since we perform a non-direct transformation)- Returns:
- Mapping of JIRA issue key to
JiraIssueDetailsobject - Throws:
com.atlassian.applinks.api.CredentialsRequiredException- when remote JIRA operation requires authenticationCredentialsRequiredContextExceptioncom.atlassian.sal.api.net.ResponseException
-