Class RemoteIssueLinkResource

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

public class RemoteIssueLinkResource extends Object
Responsible for handling REST calls relating to remote issue links.
Since:
v5.0
  • Constructor Details

  • Method Details

    • getRemoteIssueLinks

      public javax.ws.rs.core.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
    • getRemoteIssueLinkById

      public javax.ws.rs.core.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
    • createOrUpdateRemoteIssueLink

      public javax.ws.rs.core.Response createOrUpdateRemoteIssueLink(Issue issue, RemoteIssueLinkCreateOrUpdateRequest request, javax.ws.rs.core.UriInfo 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
    • updateRemoteIssueLink

      public javax.ws.rs.core.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
    • deleteRemoteIssueLinkById

      public javax.ws.rs.core.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
    • deleteRemoteIssueLinkByGlobalId

      public javax.ws.rs.core.Response deleteRemoteIssueLinkByGlobalId(Issue issue, String globalId)