Hello,
We need to have a field with the componet lead. We used the code from adaptavist samples but we need some help to return the application user.
Can anybody help us?
package com.onresolve.jira.groovy.test.scriptfields.scripts
import com.atlassian.jira.user.ApplicationUsers
import com.atlassian.jira.ComponentManager
def components = issue.componentObjects.toList()
if (components) {
def lead = components?.first()?.componentLead.getDirectoryUser()
return ApplicationUsers(lead)
}
Thank you