Copy Project with filters and dashboards

Hi,

I try to copy a project with the related dashboards and filters, prefixed with "PM-" (PM is the key of my souce project).

When I click on Run, nothing happens. If I don't tell the script to copy the dashboards and filters it works.

In the log file, I get this error (but not always...)

2014-11-25 09:18:53,974 http-bio-8080-exec-15 ERROR admin 558x11864x1 hpfgaa 10.106.96.6,10.105.64.32 /rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.jira.admin.CopyProject [atlassian.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event '[com.atlassian.jira.event.workflow.WorkflowSchemeAddedToProjectEvent@827b20d, SingleParameterMethodListenerInvoker{method=public void com.atlassian.jira.auditing.AuditingEventListener.onWorkflowSchemeAddedToProjectEvent(com.atlassian.jira.event.workflow.WorkflowSchemeAddedToProjectEvent), listener=com.atlassian.jira.auditing.AuditingEventListener@cfeeaae}]' from the invoker 'java.lang.RuntimeException: java.lang.NullPointerException'

Is there something to do in the dashboards and filters? There are shared with everyone.

Thanks

Stéphane

1 answer

1 accepted

Accepted Answer
0 votes

I found the root cause. It seems you have to check "Copy Versions" if you want to copy dashboards and filters.

In release 6.0.7 there is an explicit error if you try to copy dashboards and filters without checking the Copy Version box. In release 6.3.10, there is no error and no action is performed. If you check the box, it works!

OK... would be great if you could create an issue at https://jamieechlin.atlassian.net/browse/GRV, then I will take a look.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

452 views 3 5
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