You will have to do that via roles. It is either a single group or a single role. If you need multiple groups, you will have to add them to a custom role and then restrict the comment to that role.
Referring to the General Configuration documentation, you will only be able to set either Project Roles or Groups & Project Roles for the comment visibility options. There is no option for groups only. You may probably need to do some source codes modification to customise it if you wish to have only groups.
Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...
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