Hi,
We are using jira cloud.
Automatic assignee in project scheduling status which was assigned in IT review status.
using script runner add on .
so please anyone suggest me code.
Regards,
Abhishree Nagesh
Hi @Abhishree Nagesh we are using this script. Sending it the username and it assigns the relevant person during Post Function.
public static def setAssignee(String assigneeToSet, Issue issue) {
def issueManager = ComponentAccessor.getIssueManager()
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
ApplicationUser userToSet = ComponentAccessor.getUserManager().getUserByName(assigneeToSet);
issue.setAssignee(userToSet);
issueManager.updateIssue(currentUser, (MutableIssue)issue, EventDispatchOption.ISSUE_ASSIGNED, false);
}
Please note, this works for Jira Server.
In which parameter of the post function the code must be placed in script runner.
Regards
abhishree
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.