getCommentsByIds method
Future<PageBeanComment>
getCommentsByIds({
- String? expand,
- required IssueCommentListRequestBean body,
Returns a paginated list of comments specified by a list of comment IDs.
This operation can be accessed anonymously.
Permissions required: Comments are returned where the user:
- has Browse projects project permission for the project containing the comment.
- If issue-level security is configured, issue-level security permission to view the issue.
- If the comment has visibility restrictions, belongs to the group or has the role visibility is restricted to.
Implementation
Future<PageBeanComment> getCommentsByIds(
{String? expand, required IssueCommentListRequestBean body}) async {
return PageBeanComment.fromJson(await _client.send(
'post',
'rest/api/3/comment/list',
queryParameters: {
if (expand != null) 'expand': expand,
},
body: body.toJson(),
));
}