Set visibility on comment
Hi,
We have two groups: group A and group B.
In the same issue we'd like that group A see only his own comments and the same for the group B.
How can we do this by workflow?
Which is the property of entity comments that allows to work at comments visibility?
Please sign in to leave a comment.
Hello, thank you for the question and sorry for the delay.
I can recommend you to take one of these workflows as a base for yours: https://www.jetbrains.com/help/youtrack/standalone/restrict-issue-visibility-workflow.html
The property that you're looking for is `permittedGroup`, you can check all comments properties here: https://www.jetbrains.com/help/youtrack/standalone/v1-IssueComment.html
Let us know if you have any further questions, we'll be happy to help.
Should this workflow approach still work? This functionality is also what I want to achieve.
I've created a Javascript workflow which successfully changes the comment's ‘permittedGroup’ property to the usergroup that I want to extend visibility to. YT highlights that the comment visibility has been granted for this usergroup, however logging in as a member of that usergroup the comment is not visible, they can only see their own comments.
The usergroup that the workflow gives the comment visibility permission to has the following comment permissions:
Create Issue Comment, Delete Issue Comment, Update Issue Comment.
Hi Chris,
It seems that the group also needs the “Read Issue Comment” permission - without it, its members will indeed only see their own comments.