In Jira Software Server, is it possible to restrict who can comment in issues based on the user's role and the status that the issue is in?
Specifically, I want people in the "users" role to no longer be able to create comments once an issue is moved into the Closed state, but I would like users in the "developers" and "administrators" roles to be able to keep commenting. (Usually, we're discussing the finer points of how the issue was addressed with the comments restricted to only being viewed by users in those groups.)
I did try setting the "jira.permission.comment.user" property to "false" when the issue is moved into that state, hoping the "user" part of the property was referring to the user's role, but sadly, that seems to have applied to _all_ users, so nobody could comment, even our devs and admins. Is there an option that's less all-or-nothing?
Also, I just noticed that when using "jira.permission.comment.user" set to "false", the full screen view of the issue doesn't show the Comment button or respond to the keyboard shortcut (m), when viewing the issue in a Rapid Board, the Comment button is still there and the keyboard shortcut is handled. The comment that's entered via the board is not accepted (throwing an error about the server not being able to be contacted), but that's kind of ugly.
I came across a requirement like this in the past and we addressed it okay-ish but like you said the solution is never absolutely 100% - here is what I can share right now. Please also not it would require you have "Script Runner" installed - this is an App which needs extra payment. So the following might not be a solution for you.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events