public interface JiraRestService
Modifier and Type | Method and Description |
---|---|
JiraRestResponse |
doRestCallViaApplink(com.atlassian.applinks.api.ApplicationLink applicationLink,
String requestUrl,
com.atlassian.sal.api.net.Request.MethodType methodType,
com.opensymphony.webwork.dispatcher.json.JSONObject data)
Perform a rest call to JIRA.
|
JiraRestResponse |
doRestCallViaApplink(com.atlassian.applinks.api.ApplicationLink applicationLink,
String requestUrl,
com.atlassian.sal.api.net.Request.MethodType methodType,
com.opensymphony.webwork.dispatcher.json.JSONObject data,
Class<? extends com.atlassian.applinks.api.auth.AuthenticationProvider> providerClass)
Perform a rest call to JIRA.
|
com.opensymphony.webwork.dispatcher.json.JSONObject |
getRemoteIssueLinkJson(String globalIdPostfix,
String text,
String key,
String relationship,
String relativeUrl,
String icon)
Generate the JsonData representing an Issue link.
|
@NotNull JiraRestResponse doRestCallViaApplink(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, String requestUrl, com.atlassian.sal.api.net.Request.MethodType methodType, @Nullable com.opensymphony.webwork.dispatcher.json.JSONObject data) throws CredentialsRequiredContextException
applicationLink
- for the JIRA instance you are going to callrequestUrl
- url to hit, relative to the JIRA server defined in the app link.methodType
- http method typedata
- optional data to be included in the requestJiraRestResponse
containing errors and response as JSON if possible.CredentialsRequiredContextException
- if oauth dance required@NotNull JiraRestResponse doRestCallViaApplink(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, String requestUrl, com.atlassian.sal.api.net.Request.MethodType methodType, @Nullable com.opensymphony.webwork.dispatcher.json.JSONObject data, @Nullable Class<? extends com.atlassian.applinks.api.auth.AuthenticationProvider> providerClass) throws CredentialsRequiredContextException
applicationLink
- for the JIRA instance you are going to callrequestUrl
- url to hit, relative to the JIRA server defined in the app link.methodType
- http method typedata
- optional data to be included in the requestproviderClass
- declares that you want a specific AuthenticationProvider to be used, instead of the default oneJiraRestResponse
containing errors and response as JSON if possible.CredentialsRequiredContextException
- if oauth dance required@NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getRemoteIssueLinkJson(@NotNull String globalIdPostfix, @NotNull String text, @NotNull String key, @NotNull String relationship, @NotNull String relativeUrl, String icon) throws com.opensymphony.webwork.dispatcher.json.JSONException
globalIdPostfix
- text to uniquely identify this Remote Issue Link to prevent the same link being added multiple times to one issue. Will get refixed with appId.text
- this is the text that will display in the issue link (after we do our permissioning magic on the jira side)key
- this is technically the summary, but is also the key that the jira side will use to grab latest status e.g. planResultKey or planKey. Will also get displayed whilst trying to verify permissions.relationship
- this is the text that displays before the Issue Link, defining the relationship between the issue and what its linked to.relativeUrl
- this is the url in Bamboo you want the remote link to link to.icon
- this is the full path to the icon to be displayed next to the link. Most probably this will be a link to the icon on the JIRA Server.com.opensymphony.webwork.dispatcher.json.JSONException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.