In Jira server we were able to comment on issues/tickets my marking the comment as 'Internal Only' based on permissions of specific users. This was especially useful when the project ticket was for an external customer/vendor.
In Jira Cloud we do not see a similar feature to allow 'internal only' comments on tickets.