I found a similar post. This one https://community.atlassian.com/t5/Jira-questions/Copy-value-portfolio-field-quot-Team-quot-in-custom-field/qaq-p/926689
but when I try to import this package in my groovy script, it says unable to resolve class DefaultTeam.
import com.atlassian.rm.teams.core.team.data.DefaultTeam
In fact I cannot import any packages from porfolio. here is the link
This is the key to my solution. I need to be able to import this package
com.atlassian.rm.teams.core.team.data.DefaultTeam. @Tom Lister I need your help to be able to import this com.atlassian.rm.teams.core.team.data.DefaultTeam