Forums

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

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
PD 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
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events