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?
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())
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since you have very limited choice on post-function scripts, I guess you are stucked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.