Hi there,
i'm looking for a way to store the user that last resolves an issue.
I took a look on the scripted fields but i didn't manage to make it work.
The way i'm approaching it is that the field value will be the user that turns the resolution from null to an existing value.
Maybe there is a better way to do it but i have no experience with JIRA changehistory.
Thanx in advance,
Kostas
Try this:
import com.atlassian.jira.component.ComponentAccessor changeItems = ComponentAccessor.changeHistoryManager.getAllChangeItems(issue) if (changeItems?.size()>0) { ComponentAccessor.userUtil.getUserByKey(changeItems.findAll{it.field=='resolution'}.sort(false).last().userKey) } else { null }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.