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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

38 views 0 3
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