Copy Project with filters and dashboards

Stéphane Génin November 24, 2014

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

0 votes
Answer accepted
Stéphane Génin November 25, 2014

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!

JamieA
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.
November 25, 2014

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
TAGS
AUG Leaders

Atlassian Community Events