getRemoteIssueLinks method

Future<RemoteIssueLink> getRemoteIssueLinks({
  1. required String issueIdOrKey,
  2. String? globalId,
})

Returns the remote issue links for an issue. When a remote issue link global ID is provided the record with that global ID is returned, otherwise all remote issue links are returned. Where a global ID includes reserved URL characters these must be escaped in the request. For example, pass system=http://www.mycompany.com/support&id=1 as system%3Dhttp%3A%2F%2Fwww.mycompany.com%2Fsupport%26id%3D1.

This operation requires issue linking to be active.

This operation can be accessed anonymously.

Permissions required:

Implementation

Future<RemoteIssueLink> getRemoteIssueLinks(
    {required String issueIdOrKey, String? globalId}) async {
  return RemoteIssueLink.fromJson(await _client.send(
    'get',
    'rest/api/3/issue/{issueIdOrKey}/remotelink',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (globalId != null) 'globalId': globalId,
    },
  ));
}