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 Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

226 views 6 0
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