public class

RemoteIssueLinkResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.issue.RemoteIssueLinkResource

Class Overview

Responsible for handling REST calls relating to remote issue links.

Summary

Public Constructors
RemoteIssueLinkResource(RemoteIssueLinkService remoteIssueLinkService, BeanBuilderFactory beanBuilderFactory, I18nHelper i18n, JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
Response createOrUpdateRemoteIssueLink(Issue issue, RemoteIssueLinkCreateOrUpdateRequest request, ContextUriInfo contextUriInfo)
Creates or updates a remote issue link from a JSON representation.
Response deleteRemoteIssueLinkByGlobalId(Issue issue, String globalId)
Response deleteRemoteIssueLinkById(Issue issue, String idString)
Deletes a remote issue link.
Response getRemoteIssueLinkById(Issue issue, String idString)
Gets the remote issue link with the given id for the given issue.
Response getRemoteIssueLinks(Issue issue, String globalId)
Gets all the remote issue links for the given issue, and filter by the other parameters.
Response updateRemoteIssueLink(Issue issue, String idString, RemoteIssueLinkCreateOrUpdateRequest request)
Updates a remote issue link.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RemoteIssueLinkResource (RemoteIssueLinkService remoteIssueLinkService, BeanBuilderFactory beanBuilderFactory, I18nHelper i18n, JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public Response createOrUpdateRemoteIssueLink (Issue issue, RemoteIssueLinkCreateOrUpdateRequest request, ContextUriInfo contextUriInfo)

Creates or updates a remote issue link from a JSON representation. If a globalId is provided and a remote issue link exists with that globalId, the remote issue link is updated. Otherwise, the remote issue link is created.

Parameters
issue the issue to create the link with
request the request, containing the values of the remote issue link to be created/updated
contextUriInfo uri context, for building the self link
Returns
  • a Response containing a RemoteIssueLinkCreateOrUpdateResponse, or the error details if something went wrong

public Response deleteRemoteIssueLinkByGlobalId (Issue issue, String globalId)

public Response deleteRemoteIssueLinkById (Issue issue, String idString)

Deletes a remote issue link.

Parameters
issue the issue
idString the id of the remote issue link
Returns
  • a Response with no content, or the error details if something went wrong

public Response getRemoteIssueLinkById (Issue issue, String idString)

Gets the remote issue link with the given id for the given issue.

Parameters
issue the issue
idString the id of the remote issue link
Returns
  • a Response containing a RemoteIssueLinkBean, or the error details if something went wrong

public Response getRemoteIssueLinks (Issue issue, String globalId)

Gets all the remote issue links for the given issue, and filter by the other parameters.

Parameters
issue the issue
globalId if not null, return only the remote issue link with this globalId
Returns
  • a Response containing a List of RemoteIssueLinkBeans, or the error details if something went wrong

public Response updateRemoteIssueLink (Issue issue, String idString, RemoteIssueLinkCreateOrUpdateRequest request)

Updates a remote issue link.

Parameters
issue the issue to update the link with
idString the id of the remote issue link
request the request, containing the values of the remote issue link to be updated
Returns
  • a Response with no content, or the error details if something went wrong