Hello,
I am trying to update an assets object with the information of Jira customfields with scriptrunner HAPI. Some of the attributes can hold multiple values. I I have the code that works for example for objects but I do not seem to make it work for objects with attributes of the type "Jira Project" or "Emails".
I know that I can use this for text fields:
if (teamname) setAttribute('Name', teamname)
Or this for objects
Hi @Lara Lopez
Try out this:
def x = Assets.getByKey("TEST-1")
x.update {
setAttribute("Project", 10100, 10300, 10000)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.