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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.