You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
def field = getFieldByName("CRM related products")
Welcome to the community.
Could you please clarify if you have tried using ScriptRunner's HAPI feature to set the value for the Assets field?
If not, I suggest looking at the Assets section in the ScriptRunner HAPI documentation. There are a couple of examples in the documentation which show how you can use HAPI to manage the assets.
I am looking forward to your feedback and clarification.
Thank you and Kind regards,
Hi Ram, thanks for replying.
Yes, I am using HAPI. What I want to do is populate an Assets custom field service desk screen (shown in my first post) with values from Assets. So the process would be:
The code in my initial post (which I took from the Behaviors Setting Field Defaults page) works fine if the Assets custom field is set to multiple select. But for me the same code does not work if the field is multiple checkbox.
Here's a step by step: