I am trying to get the list of Users that an issue was assigned to. Below, I think I am getting the string name for the user, but I was hoping to get the User object. The getField() method seems like the best candidate for what I'm trying to extract from the history, but I'm not sure how to get the User object. Any recommendations? Thanks.
def changeHistoryManager = ComponentManager.getComponentInstanceOfType(ChangeHistoryManager.class)
def issueAssigneeHistory = changeHistoryManager.getChangeItemsForField(issue, "assignee")
if (issueAssigneeHistory.size() >= 1) {
assignee = issueAssigneeGroupHistory.last().getField()