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

Paul Harvey January 28, 2014

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

0 votes
Frank Polscheit
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.
February 4, 2014

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

0 votes
Paul Harvey February 4, 2014

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?

0 votes
Paul Harvey January 28, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events