getCommentAttachments method
This method returns the attachments referenced in a comment.
Permissions required: Permission to view the customer request.
Response limitations: Customers can only view public comments, and retrieve their attachments, on requests where they are the reporter or a participant whereas agents can see both internal and public comments.
Implementation
Future<PagedDTOAttachmentDTO> getCommentAttachments(
{required String issueIdOrKey,
required int commentId,
int? start,
int? limit}) async {
return PagedDTOAttachmentDTO.fromJson(await _client.send(
'get',
'rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}/attachment',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
'commentId': '$commentId',
},
queryParameters: {
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
},
));
}