Hi
In an automation triggered on issue linked I want to copy the linked issue to another multi issue picker field.
The code for updating a multiselect is
Issues.getByKey('ABC-1').update {
setCustomFieldValue('Multi Select List', 'A', 'B')
}
def myissues = "'abc-123','abc-345'"
setCustomFieldValue('Multi Select List', myissues)
Hi @Tobbe
Since this is multiple options from a Multi-Select List, have you tried adding the options in a list like:-
def myissues = ['abc-123','abc-345']
setCustomFieldValue('Multi Select List', myissues)
Give it a go and see how it is. :-)
I am looking forward to your feedback.
Thank you and Kind regards,
Ram
Hi Ram. That doesnt work either. It cant take an array list
ArrayList cannot be cast to class com.atlassian.jira.issue.Issue (java.util.ArrayList is in module java.base of loader 'bootstrap';
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.