Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Behaviour with muilti value Asset custom field

Julia Gracia April 3, 2024

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

1 answer

0 votes
Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 19, 2024

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events