Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-69292

uid undefined on AC.getUser method when apps are accessed on new glance issue view

    XMLWordPrintable

Details

    Description

      Summary

      In an Active Sprint/Kanban view, click on an issue and try to open a third party app or do an operation in a third party app, and you are presented with the following error message:

      Uncaught TypeError: Cannot read property 'uid' of undefined
          at Object.getUser (batch.js?adg3Enabled=true&agile_global_admin_condition=true&devsummary=true&globalSidebarEnabled=true&jag=true&jaguser=true&jira-nps-enabled=true&locale=en-US&nps-not-opted-out=true&sd_operational=true:12779)
      

      Clicking the source link gives the following code that fails:

      /* module-key = 'com.atlassian.plugins.atlassian-connect-plugin:ap-user-v5', location = 'v5/js/iframe/host/user.js' */
      define("ac/user", function() {
          return {
              getUser: function(a) {
                  var b = a._context.extension.options.user
                    , c = AJS.Meta.get("remote-user-fullname") || AJS.Meta.get("current-user-fullname") || null;
                  a({
                      fullName: c,
                      id: b.uid, //This is where it fails and UID is undefined
                      key: b.ukey
                  })
              },
              getTimeZone: function(a) {
                  a(a._context.extension.options.user.timeZone)
              }
          }
      });
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              acalantog Anne Calantog
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: