I want to automatically assign tickets in JIRA when they are resolved to the reporter, only if the reporter is a member of the QA team.
For example, if QA member opened an issue, when the issue is resolved it should be assigned back to the reporter. If a developer opened an issue, the issue should be automatically assigned (when resolved) to QA team leader.
What is the best practice and how to configure it in JIRA cloud?