Not working: Gantt chart export as MS Project or MS Powerpoint, javascript errors

This plugin looks fantastic! But we can't export Gantt charts. We've tried in Google Chrome 32.0 and Firefox 26.0 on both Linux and MacOS X Mavericks.

There seems to be a javascript error when the export links are clicked from the Gantt Chart page:

Uncaught TypeError: Cannot read property 'name' of null de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
Backbone.Collection.extend.getDataForExport de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
Backbone.Collection.extend.exporting de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
(anonymous function) de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
jQuery.event.dispatch batch.js:19
elemData.handle.eventHandle batch.js:19

I can't see any clues in Jira's logfile. There is another JS error when the page is first loaded that may be related:

GET https://servername:8443/jira/rest/structure/1.0/structure?_=1390957408625 404 (Not Found) batch.js:26
send batch.js:26
jQuery.extend.ajax batch.js:26
jQuery.(anonymous function) batch.js:26
jQuery.extend.getJSON batch.js:26
Backbone.Collection.extend.loadStructures de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
Backbone.Collection.extend.initialize de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
z.Collection de.polscheit.jira.plugins.gantt:gantt-resources3.js:34
Q de.polscheit.jira.plugins.gantt:gantt-resources3.js:34
(anonymous function) de.polscheit.jira.plugins.gantt:gantt-resources3.js:40
fire batch.js:19
self.fireWith batch.js:19
jQuery.extend.ready batch.js:19
DOMContentLoaded

This is on a project that has had its KEY renamed. Does that matter?

More about our server:

  • JIRA: 6.1.5
  • Plugin: 3.0.0-JIRA6
  • OS: Windows
  • JVM: 1.7.0_25
  • Server: Apache Tomcat/7.0.29
  • DB: PostgreSQL 9.0.15
  • DB Driver: PostgreSQL Native Driver PostgreSQL 9.0 JDBC4 (build 801)

3 answers

Update: the error happens on all projects, not just the renamed one. From the user's perspective, they click "MS Project" or "MS Powerpoint" - and nothing happens.

Update2: I've installed http://www.polscheit.de/plugins/jira/gantt-chart/gantt-3.1.0-JIRA6.jarand now our other projects are working! However, our "renamed" project is more broken than ever!

It actually exports something now, but it's an empty template each time - rather than our actual project.

The bigger problem is that the Gantt chart is no longer visible at all!

So I renamed this project back to its old key, and it started working fully - we can see/use the Gantt page, and also export works fine. But then, restoring the key back to its desired value, Gantt charts and Gantt export is broken...

Are there any work-arounds to allow our renamed project to work properly?

Hi Paul,

please send me an email at frank@polscheit.dedue to your privacy and security not providing internal information to the public: what's your project's old/new project name and project key? Please also copy your browser's console output into this email for further analysis.

Regards,
Frank

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

182 views 0 4
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