How to automatically assign issue to reporter?

Polina Blinchevsky February 24, 2016

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

0 votes
HarryH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2016

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())

    }

Polina Blinchevsky February 24, 2016

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

GabrielleJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2016

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