- Samuel Bartolome
- Sep 03, 2020
- connector-onpremise-jira
- feature-customfield
- Comment
2 answers
- 210
At the end I've figured it out
issue.customFields."CustomField".value = [nodeHelper.getUserByUsername("Username1"), nodeHelper.getUserByUsername("Username2")]
Thanks for the help
CommentAdd your comment... - 10-1
Hi Samuel Bartolome
Check following document How to synchronize list custom fields
Let me know- Samuel Bartolome
Hi,
I believe the option I'm looking for is below, however I don't seem to understand the last part of the code from the + signnodeHelper.getOption(issue,
"Multi Select Custom Field name"
,
"MY STATIC OPTION"
)
Set an option value manually into the local custom field
1
2
3issue.customFields.
"Multi Select Custom Field name"
.value =
(issue.customFields.
"Multi Select Custom Field name"
.value ?: []) +
nodeHelper.getOption(issue,
"Multi Select Custom Field name"
,
"MY STATIC OPTION"
)
- Samuel Bartolome
There is no error, however no data is populated into the field.
How shall we proceed if we would like to add 2 default values?
Thanks
- Francis Martens (Exalate)
You can always inspect the values and the flow of the script by adding
throw new Exception("Result - ${nodeHelper.getOption(issue, "Multi Select Custom Field name", "MY STATIC OPTION")}")
This will provide you a way to look at the calculated value.
CommentAdd your comment...