The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Behaviour script for components field not working

swathi K
April 13, 2020

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")

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.