|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteJiraRestService
Helper class for making REST calls to JIRA servers. Supported REST API versions are: - 2.0alpha1 - 2
Nested Class Summary | |
---|---|
static class |
RemoteJiraRestService.RestVersion
|
Method Summary | |
---|---|
RemoteResponse |
createRemoteIssueLink(com.atlassian.applinks.api.ApplicationLink applicationLink,
String remoteIssueKey,
Issue issue,
String relationship,
RemoteJiraRestService.RestVersion restVersion)
Creates a remote issue link between the given remote issue and the given local issue. |
RemoteResponse<RemoteJiraIssue> |
getIssue(com.atlassian.applinks.api.ApplicationLink applicationLink,
String issueIdOrKey,
RemoteJiraRestService.RestVersion restVersion)
Gets the issue with the given key, on the JIRA server given by the application link. |
RemoteResponse<RemoteJiraIssue> |
getIssue(String baseUri,
String issueIdOrKey,
RemoteJiraRestService.RestVersion restVersion)
Gets the issue with the given key, on the JIRA server given by the application link. |
Method Detail |
---|
RemoteResponse<RemoteJiraIssue> getIssue(com.atlassian.applinks.api.ApplicationLink applicationLink, String issueIdOrKey, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
applicationLink
- the application link of the JIRA serverissueIdOrKey
- the issue ID or keyrestVersion
- the version of the REST API to invoke
RemoteResponse
containing a JSONObject
and properties of the HTTP response
com.atlassian.applinks.api.CredentialsRequiredException
- thrown if authentication is required
com.atlassian.sal.api.net.ResponseException
- thrown if the response cannot be retrievedRemoteResponse<RemoteJiraIssue> getIssue(String baseUri, String issueIdOrKey, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
baseUri
- the base URI of the JIRA instanceissueIdOrKey
- the issue ID or keyrestVersion
- the version of the REST API to invoke
RemoteResponse
containing a JSONObject
and properties of the HTTP response
com.atlassian.applinks.api.CredentialsRequiredException
- thrown if authentication is required
com.atlassian.sal.api.net.ResponseException
- thrown if the response cannot be retrievedRemoteResponse createRemoteIssueLink(com.atlassian.applinks.api.ApplicationLink applicationLink, String remoteIssueKey, Issue issue, String relationship, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
applicationLink
- the application link of the remote JIRA serverremoteIssueKey
- the issue key of the remote issueissue
- the local issuerelationship
- the relationship for the linkrestVersion
- the version of the REST API to invoke
RemoteResponse
containing a JSONObject
and properties of the HTTP response
com.atlassian.applinks.api.CredentialsRequiredException
- thrown if authentication is required
com.atlassian.sal.api.net.ResponseException
- thrown if the response cannot be retrieved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |