public interface JiraRemoteIssueManager
Modifier and Type | Method and Description |
---|---|
Result<com.atlassian.applinks.api.CredentialsRequiredException,List<JiraIssueDetails>> |
fetchIssueDetailsFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink,
String jiraProjectKey,
Set<String> jiraIssueKeys)
Fetch issue details from JIRA via XML Search.
|
Iterable<com.atlassian.applinks.host.spi.EntityReference> |
fetchProjectInformationFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink)
Fetch project list from JIRA using REST service provided by applinks.
|
com.atlassian.applinks.api.ApplicationLink |
getJiraApplicationLink(String jiraProjectKey,
Project project)
Retrieves the 'best' application link for a given JIRA project key.
|
@NotNull Result<com.atlassian.applinks.api.CredentialsRequiredException,List<JiraIssueDetails>> fetchIssueDetailsFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull String jiraProjectKey, @NotNull Set<String> jiraIssueKeys)
applicationLink
- identifies JIRA application to fetch issue details fromjiraProjectKey
- JIRA project key (all issue keys should be from this project)jiraIssueKeys
- keys of issues to be searched in JIRAJiraIssueDetails
objects representing JIRA issues or
CredentialsRequiredException when authentication is required in order to establish connection with JIRA@NotNull Iterable<com.atlassian.applinks.host.spi.EntityReference> fetchProjectInformationFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
applicationLink
- identifies JIRA application to fetch project list fromEntityReference
objects representing JIRA projectscom.atlassian.applinks.api.CredentialsRequiredException
- when authentication is required in order to establish connection with JIRACredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
@Nullable com.atlassian.applinks.api.ApplicationLink getJiraApplicationLink(@NotNull String jiraProjectKey, @Nullable Project project) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
jiraProjectKey
- the JIRA project key that has to be available in the returned application.project
- the project to check for entity links (optional)com.atlassian.applinks.api.CredentialsRequiredException
- when credentials are required to access remote JIRA instanceCredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.