issues.each { issue ->
def assignee = issue.getAssignee()
def reporter = issue.getReporter()
def isAssigned = assignee != null
def isAssignedToTenable = assignee?.getUsername() == QUERY_USER_NAME // <-- Constant User
def assigneeChanges = changeHistoryManager.getChangeItemsForField(issue, "assignee")
def postCreationNonTenableAssignment = assigneeChanges.find{it.getTo() != null && it.getTo() != QUERY_USER_NAME}
def assignmentTime = postCreationNonTenableAssignment?.getCreated()
if (assigneeChanges.size() == 0) { // <-- Has not had an assignment change.
-- Do things --
else { // <-- Has had an assignment change.
def firstAssigneeChange = assigneeChanges[0]
if (!isAssignedToTenable && /* "actor = Sec-Eng team" --> How do I find the assignment actors? */ ) {
}
Anyone know how I can find the assignment actors for each issue? I can see who it's assigned to and from easily. But I'm missing something when it comes to finding the user whom initiated the action.