createOrUpdateRemoteIssueLink method

Future<RemoteIssueLinkIdentifies> createOrUpdateRemoteIssueLink({
  1. required String issueIdOrKey,
  2. required RemoteIssueLinkRequest body,
})

Creates or updates a remote issue link for an issue.

If a globalId is provided and a remote issue link with that global ID is found it is updated. Any fields without values in the request are set to null. Otherwise, the remote issue link is created.

This operation requires issue linking to be active.

This operation can be accessed anonymously.

Permissions required:

Implementation

Future<RemoteIssueLinkIdentifies> createOrUpdateRemoteIssueLink(
    {required String issueIdOrKey,
    required RemoteIssueLinkRequest body}) async {
  return RemoteIssueLinkIdentifies.fromJson(await _client.send(
    'post',
    'rest/api/3/issue/{issueIdOrKey}/remotelink',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    body: body.toJson(),
  ));
}