Hi, I'm writing a script for a behavior in the creation of a ticket. This script reads the attributes of an Assets object and writes them to custom fields of the creation screan of the ticket, one of these attributes have a multiple asset object type. I don't know how to make setFromValue() fuction to writes several asset objects. Thanks in advance
Community moderators have prevented the ability to post new answers.
setFormValue() for asset fields takes an array of asset keys.
def objectList = {/* some code that gets the list of assest objects*/}
formFIeld.setFormValue(objectList*.objectKey)
If that doesn't work, share a bit of your code, I can see if I can help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.