configure the restriction where only the developer & tester group will have the visibility of the bug issue type tickets and the CM group can only see story issue type tickets.
You will need to set a security level on the issues you wish to restrict. Get started with issue security at https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-security-schemes/