Script Runner - Copy Project error message

Alex Christensen Community Champion Nov 17, 2015

I get the following error after running the Copy Project built-in script from Script Runner.

java.lang.NumberFormatException: For input string: ""
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$_convertProjectFilterStrings_closure11.doCall(CopyProject.groovy:677)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.convertProjectFilterStrings(CopyProject.groovy:661)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.this$dist$invoke$1(CopyProject.groovy)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.methodMissing(CopyProject.groovy)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.invokeMethod(CopyProject.groovy)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2$_consume_closure1$_closure2.doCall(CopyProject.groovy:647)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2$_consume_closure1.doCall(CopyProject.groovy:645)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.consume(CopyProject.groovy:644)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$2.consume(CopyProject.groovy)
	at com.atlassian.jira.util.collect.TransformingEnclosedIterable$1.consume(TransformingEnclosedIterable.java:33)
	at com.atlassian.jira.util.collect.CollectionUtil.foreach(CollectionUtil.java:44)
	at com.atlassian.jira.util.collect.CloseableIterator$Functions.foreach(CloseableIterator.java:58)
	at com.atlassian.jira.ofbiz.DatabaseIterable.foreach(DatabaseIterable.java:44)
	at com.atlassian.jira.util.collect.TransformingEnclosedIterable.foreach(TransformingEnclosedIterable.java:29)
	at com.atlassian.jira.util.collect.EnclosedIterable$foreach.call(Unknown Source)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.copyDashAndFilters(CopyProject.groovy:624)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$copyDashAndFilters$1.callCurrent(Unknown Source)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.doCopyProject(CopyProject.groovy:562)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject$doCopyProject$0.callCurrent(Unknown Source)
	at com.onresolve.scriptrunner.canned.jira.admin.CopyProject.doScript(CopyProject.groovy:278)

When copying the project, I did not choose to copy issues, but I did choose to copy versions and project-specific dashboards/filters. We have 3 dashboard and 12 filters that need to be copied - all 12 filters were copied correctly, but only 1 dashboard copied correctly. The naming convention (i.e. if the project's key is PRO, then the dashboard should be named "PRO-Dashboard Name") is the same for all three dashboards.

What might this error indicate? FYI - we ran this same script on our test instance of JIRA and didn't get this error. Could there be something wrong with one of the dashboards?

1 answer

1 accepted

Hi Alex,

Probably there is something wrong with the filters. More information you can find here https://jamieechlin.atlassian.net/browse/GRV-594 

Regards, Thanos

Alex Christensen Community Champion Nov 23, 2015

Thank you, Thanos! This helps point me in the right direction - I think I have it narrowed down to a particular gadget that uses a particular filter, so once we use this Copy Project script again, I should know for sure.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

685 views 4 16
Read article

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