Hi.
I need a sample scriptrunner workflow post action for JIRA
My post action need to set the assignee of the ticket based on the issue type
Should be simple
Community moderators have prevented the ability to post new answers.
Try to adopt this one
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.user.util.UserManager UserManager userManager = ComponentAccessor.getUserManager(); switch (issue.getIssueTypeObject().getName()){ case "Bug": issue.setAssignee(userManager.getUserByName("userName").directoryUser) case "Bug": issue.setAssignee(userManager.getUserByName("userName").directoryUser) case "Bug": issue.setAssignee(userManager.getUserByName("userName").directoryUser) }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just a little bit of googleing...
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.