Issue collector's trigger function is being called before collector is ready

XMLWordPrintable

    • 5.02
    • Severity 2 - Major
    • Hide
      Atlassian Update – 06 December 2017

      Hi everyone,

      We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out.

      Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details.

      We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication.
      Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments.
      Thank you,
      Ignat Alexeyenko
      Jira Bugmaster

      Show
      Atlassian Update – 06 December 2017 Hi everyone, We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out . Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details. We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication. Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments. Thank you, Ignat Alexeyenko Jira Bugmaster

      In issue collector the custom trigger function is being called before collector is fully ready. To be exact, it's called before DOM elements for the collector are being created.

      My quick guess is that moving entire if statement from line 33 of bootstrap.js to the end of the function would solve the issue.

      I have found this bug when I wanted to show issue collector immediately after page load (so I would basically call showDialog function directly in the custom trigger function). Temporary, dirty fix for that I found is running code inside trigger function in setTimeout(fn,0);.
      Code to reproduce the problem

      // handle issue collector
      window.ATL_JQ_PAGE_PROPS = {
          "triggerFunction": function(showCollectorDialog) {
              // show issue collector onload, when location hash is 'feedback'
              AJS.$(function(){
                  if (document.location.hash.substring(1) === "feedback") {
                      //setTimeout(showCollectorDialog, 0); // works!
                      showCollectorDialog(); // won't work :(
                  }
              });
          }
      };
      

            Assignee:
            Unassigned
            Reporter:
            Wojciech Urbanski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: