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.
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
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events