Here you are
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.security.roles.ProjectRoleManager if(true) issue.getAssigneeId( ComponentAccessor.getComponent(ProjectRoleManager.class).getProjectRoleActors().getApplicationUsers().iterator().next().getKey())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.