I want to write the last editor of a custom field into a scripted field. I do it with the following code:
import com.atlassian.jira.component.ComponentAccessor
return ComponentAccessor.getChangeHistoryManager().getAllChangeItems(issue).find {
it.field == "Target Release"
}.getUser()
The editor that is written into the scripted field is first editor, not the last one. How can I retrieve the last / the current one?
Jira version 6.4.9
ScriptRunner version 3.0.6