createOrUpdateRemoteIssueLink method
Future<RemoteIssueLinkIdentifies>
createOrUpdateRemoteIssueLink({
- required String issueIdOrKey,
- 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:
- Browse projects and Link issues project permission for the project that the issue is in.
- If issue-level security is configured, issue-level security permission to view the issue.
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(),
));
}