Scriptrunner copy custom field values produces error

Attempting to use Scriptrunners built-in script "copy custom field values"

When I run the preview I get 700 issues will be affected, which is correct. However, upon executing, it always comes back with the same error:



java.lang.NullPointerException at com.atlassian.jira.issue.customfields.impl.MultiSelectCFType.getChangelogString( at com.atlassian.jira.issue.customfields.impl.MultiSelectCFType.getChangelogString( at com.atlassian.jira.issue.fields.CustomFieldImpl.getChangelogString( at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue( at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue( at com.atlassian.jira.issue.fields.OrderableField$ Source) at com.onresolve.scriptrunner.canned.jira.admin.CopyCustomField.doScript(CopyCustomField.groovy:203)
Both the source and target fields are the same Field Type (multiselect) and have the the same search template (multiselectsearcher) so I'm not sure what the hang up is.
On my target field there are two different multi select configuration schemes (different lists based on project) do I need to define which configuration to copy to somewhere in the script?

2 answers

Hi Jeremy,

Could you please let us answer a few questions so that we can try to help you further - like:

  • What version of JIRA are you using?
  • What version of ScriptRunner are you using?

I can reproduce this on my own machine against the latest version (4.3.5) so you have likely found a bug. Perhaps you could raise this with us on our Support Portal: so we can track it through to a fix?

Thanks in advance, Mark.



 JIRA version - 6.3.4

Scriptrunner version

Following your suggestion, I entered this issue on the support portal as well.

0 votes

Thanks for letting us know, this is

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,039 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot