we are having issues with Checklist where the screen is white

IUGO August 8, 2016

Checklist for JIRA with JIRA 7.1.9 :

/* module-key = 'com.okapya.jira.checklist:checklist-resources', location = '/includes/js/checklist.view.js' */
(function(a){a.createChecklistView=function(c,l){var k=null;var m=null;var d=false;var b=false;var i=false;var e=l;var g=new a.checklist.checklistItemsCol();function j(o,n){if(_.isNull(n)||_.isUndefined(n)){return}g.comparator="rank";g.reset(n,{silent:true});if(m!=null){m.undelegateEvents();m.$(".o-show-items").off("click");m.$el.find(".o-checklist-items").empty();m.$el.find(".o-checklist-items-collapsible").empty();m.header.undelegateEvents();m.header.$el.empty()}m=new f({model:new a.checklist.checklistModel(o)});m.render();m.$(".o-show-items").click({self:m},m.toggleShowMore)}var f=a.Backbone.View.extend({events:{},initialize:function(){this.$el=AJS.$("#o-checklist-view-"+this.model.id);this.model.set("expanded",false);if(g.length){this.header=new a.checklist.header({el:this.$(".o-checklist-header"),model:{items:g,customfieldId:this.model.get("id"),showMenu:false}});this.listenTo(this.header,"toggleFilter",this.toggleFilter,this)}this.filtered=false},toggleFilter:function(){this.filtered=!this.filtered;this.$el.find(".o-checklist-items").empty();this.$el.find(".o-checklist-items-collapsible").empty();this.render()},render:function(){var s=this;var n=null;this.renderHeader();var q=this.model.get("parameters");var r=this.filtered?g.models.filter(function(t){return !t.get("checked")}):g.models;var p=q.showMoreCount;_.each(r,function(u,t){s=(p==0||t<p)?this.$(".o-checklist-items"):this.$(".o-checklist-items-collapsible");s.append(a.tpl.renderChecklistItemView({checked:u.get("checked"),text:a.marked(u.get("name"),u.get("optionId")<=0),mandatory:u.get("mandatory"),status:u.getStatus(),parameters:q}))},this);var o=this.model.get("parameters").showMoreCount;if(o==0||r.length<=0||o>=r.length){this.$("a.o-show-items").addClass("o-show-all")}else{this.$("a.o-show-items").removeClass("o-show-all")}},renderHeader:function(){if(_.isNull(this.header)||_.isUndefined(this.header)){return}this.header.render()},toggleShowMore:function(n){n.data.self.$("a.o-show-items").toggleClass("o-expanded");n.data.self.$(".o-checklist-items-collapsible").toggle()}});var h=function(p){var o=false;e=p;if(!_.isNull(e)&&!_.isUndefined(e)){if(AJS.$("#o-checklist-view-"+c.id).length>0){j(c,e);o=true;if(!d){d=true;JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED,function(u,r,t){if(t==JIRA.CONTENT_ADDED_REASON.panelRefreshed&&r.attr("id")==(c.customfieldId+"-val")){var s=JSON.parse(AJS.$("#o-checklist-view-"+c.id+"-data")[0].value);j(c,s)}})}}else{if(!b){b=true;JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED,function(t,r,s){if(s==JIRA.CONTENT_ADDED_REASON.pageLoad){if(r.find("#"+c.customfieldId+"-val").size()>0){j(c,e)}}})}}var q=AJS.$("#ghx-detail-contents");if(q.size()>0){var n=function(){if(!(m&&q.find(m.$el).size()>0)){var r=q.find("#o-checklist-view-"+c.id+"-data");if(r.size()>0){j(c,JSON.parse(r[0].value))}}};q.bind("DOMSubtreeModified",n)}}};h(l);return{view:m,registerData:h}}})(okapya);;
;
caught TypeError: Cannot read property 'undelegateEvents' of 
batch.js?agile_global_admin_condition=true&is-server-instance=true&is-system-admin=true&jag=true&ja…:4886 Uncaught TypeError: Cannot read property 'undelegateEvents' of undefined

 

 

4 answers

1 accepted

0 votes
Answer accepted
IUGO August 17, 2016

can you put your fix into production please so we can deploy it to our JIRA ?

Thanks. 

 

IUGO September 6, 2016

fixed on latest version. much appreciated.

 

Yves Riel [Okapya]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 6, 2016

Thank you Stephanie!

0 votes
Yves Riel [Okapya]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 11, 2016

Hi Stephanie,

I wasn't really able to reproduce.

  • Can send me an image of what you are seeing
  • Can you send me a step by step procedure of what you are doing to see the issue
  • Was this problem experienced since the first day you installed checklist?
  • Did you install other add-on after you installed Checklist. It happened once or twice that it was other add-ons that were causing the issue. Can you try to disable them and see if the issue disappear?

Thanks

 

IUGO August 12, 2016

please send us an email at the previous comment posted or let us know an email address to contact so it can be diagnosed correctly.

 

0 votes
IUGO August 9, 2016

yes it happens constantly when we are switching between bugs on loading a bug it shows a white screen and nothing can be clicked. the javascript console shows the error above. hitting reload reloads the bug correctly. 

please fix quickly as this is a blocker for us. 

0 votes
Yves Riel [Okapya]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 8, 2016

Hi Stephanie,

Is this something that always happen or is it something that happens once in a while? Can you constantly reproduce it?

IUGO August 9, 2016

FYI it seems to happen more when switching between tasks and subtasks.

 

IUGO August 9, 2016

if they have a todo list in them it triggers this bug.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events