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

This widget could not be displayed.

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.jira.security.groups.GroupManager

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

 

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

        issue.setAssignee(issue.getReporter())

    }

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 yesterday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

143 views 1 4
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