getApprovals method
This method returns all approvals on a customer request.
Permissions required: Permission to view the customer request.
Implementation
Future<PagedDTOApprovalDTO> getApprovals(
{int? start, int? limit, required String issueIdOrKey}) async {
return PagedDTOApprovalDTO.fromJson(await _client.send(
'get',
'rest/servicedeskapi/request/{issueIdOrKey}/approval',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
},
queryParameters: {
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
},
));
}