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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

222 views 0 6
Read article

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