Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-2042 As an App, I provide the same Dialog to export bulk issues from issue navigator.
  3. XPORTER-2411

Sometimes, when validating the current page we get an undefined and Xporter button doesn't work

    XporterXMLWordPrintable

Details

    • Sub-bug
    • Status: Closed
    • Major
    • Resolution: Done
    • Release 6.0.0
    • Release 6.0.0
    • None
    • None
    • R6.0.0 Sprint 2, R6.0.0 Sprint 11
    • UNCOVERED

    Description

      Sometimes, when validating the current page we get an undefined.

      AJS.$(window).load(function () {
          var pageSelected = AJS.$(".aui-nav-selected > a").attr('data-link-id');
          switch (pageSelected) {
              case backlogPage:
              case activeSprintPage:
              case kanbanPage:
                  handleAgileClick();
                  break;
              case releasesPage:
                  if (AJS.XP.settings.get('ENABLE_XPORTER_FOR_AGILE').value == "false") {
                      return;
                  }
                  handleReleaseClick();
                  //Release detail page
                  if (AJS.$('#release-report').length > 0) {
                      fireXporterforAgileReleaseDetail();
                  }
                  break;
              default:
                  break;
          }
      });
      

      The variable pageSelected is undefined if the sidebar is not loaded when the event triggers.

      Attachments

        Activity

          People

            hjfr Hugo Rodrigues [X] (Inactive)
            hjfr Hugo Rodrigues [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h