createRequestComment method
Future<CommentDTO>
createRequestComment({
- required String issueIdOrKey,
- required CommentCreateDTO body,
This method creates a public or private (internal) comment on a customer
request, with the comment visibility set by public
. The user recorded as
the author of the comment.
Permissions required: User has Add Comments permission.
Request limitations: Customers can set comments to public visibility only.
Implementation
Future<CommentDTO> createRequestComment(
{required String issueIdOrKey, required CommentCreateDTO body}) async {
return CommentDTO.fromJson(await _client.send(
'post',
'rest/servicedeskapi/request/{issueIdOrKey}/comment',
pathParameters: {
'issueIdOrKey': issueIdOrKey,
},
body: body.toJson(),
));
}