ERROR when copying single select list values to a multi select list

Andrian Fernandopulle August 2, 2016

Why do i get the below ERROR when trying to copy values from a Single Select to a Multi Select List. 

(I am using the Script Runner Plugins Built in Scripts to copy values among fields.

 https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_copy_custom_field_values)

java.lang.NullPointerException
at com.atlassian.jira.issue.customfields.impl.MultiSelectCFType.getChangelogString(MultiSelectCFType.java:313)
at com.atlassian.jira.issue.customfields.impl.MultiSelectCFType.getChangelogString(MultiSelectCFType.java:83)
at com.atlassian.jira.issue.fields.CustomFieldImpl.getChangelogString(CustomFieldImpl.java:481)
at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:509)
at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:487)
at com.atlassian.jira.issue.fields.OrderableField$updateValue.call(Unknown Source)
at com.onresolve.scriptrunner.canned.jira.admin.CopyCustomField.doScript(CopyCustomField.groovy:203)

3 answers

1 accepted

0 votes
Answer accepted
adammarkham
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.
August 4, 2016

This is a bug unfortunately. Please track this issue to see when the fix will go out: https://productsupport.adaptavist.com/browse/SRJIRA-1995

Thanks,

Adam

Andrian Fernandopulle August 4, 2016

ok Thanks !

0 votes
Andrian Fernandopulle August 4, 2016

JIra Version: v6.3.14

Script Runner Version: 4.1.3.15

Thanks

0 votes
adammarkham
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.
August 4, 2016

Which version of ScriptRunner and JIRA are you using?

Suggest an answer

Log in or Sign up to answer