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.
@Peter Bengov
In which parameter of the post function the code must be placed in script runner.
Regards
abhishree
It looks like you're new here. Sign in or register to get started.