I'm trying to copy the value of the component/s system field to a text field. Below is the script used.
import com.atlassian.jira.bc.project.component.ProjectComponent
def formComponent=getFieldById("components")
def formUserField=getFieldByName("Activity")
List<ProjectComponent> components=formComponent.getValue() as List
formUserField.setFormValue("components")
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.