How to automatically assign issue to reporter?

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?

1 answer

You should write the script to assign issue to user as post function.


    import com.atlassian.jira.issue.Issue;

    import com.atlassian.jira.issue.MutableIssue

    import com.atlassian.jira.ComponentManager

    import com.atlassian.jira.user.util.UserManager


    import com.atlassian.crowd.embedded.api.User


    if (GroupManager.isUserInGroup((issue.getReporter(), "QA team")) {



Thanks, but it's JIRA cloud, I can't write scripts...

Since you have very limited choice on post-function scripts, I guess you are stucked.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 13 hours ago in Jira Service Desk

Looking for anyone who has switched from Zendesk to Jira Service Desk

Hi Community! The Jira Service Desk marketing team is looking for customers who have successfully switched from Zendesk to Jira Service Desk!   We’d love to hear your thoughts on the pros and ...

18 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you