getAttachment method
Returns the metadata for an attachment. Note that the attachment itself is not returned.
This operation can be accessed anonymously.
Permissions required:
- Browse projects 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<AttachmentMetadata> getAttachment(String id) async {
return AttachmentMetadata.fromJson(await _client.send(
'get',
'rest/api/3/attachment/{id}',
pathParameters: {
'id': id,
},
));
}