Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-4373

SR plugin presence breaks JSD customer portal loading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • L3
    • Resolution: Done
    • 6.1.0
    • 6.2.1
    • None
    • None
    • 2.1

    Description

      In some circumstances (likely environmental), the service desk portal will fail to load after selecting a request type, if ScriptRunner is installed.

      The following error will be present in the JavaScript console:

      Uncaught TypeError: Object(...)(...).select2 is not a function
          at HTMLSelectElement.<anonymous> (batch.js?locale=en-US:formatted:3236)
          at Function.each (batch.js?locale=en-US:39)
          at c.fn.init.each (batch.js?locale=en-US:35)
          at Object.select2Default (batch.js?locale=en-US:formatted:3235)
          at d.onRender (batch.js?locale=en-US:formatted:12514)
          at d.triggerMethod (batch.js?locale=en-US:3361)
          at d.render (batch.js?locale=en-US:3377)
          at d.show (batch.js?locale=en-US:3366)
          at d.show (batch.js?locale=en-US:formatted:16530)
          at Object.<anonymous> (batch.js?locale=en-US:formatted:24161)
          at c (batch.js?locale=en-US:50)
          at Object.fireWith [as resolveWith] (batch.js?locale=en-US:50)
          at Object.a.<computed> [as resolve] (batch.js?locale=en-US:50)
          at Object.<anonymous> (batch.js?locale=en-US:3448)
          at c (batch.js?locale=en-US:50)
          at Object.fireWith [as resolveWith] (batch.js?locale=en-US:50)
          at u (batch.js?locale=en-US:50)
          at XMLHttpRequest.<anonymous> (batch.js?locale=en-US:50)
      

      This seems to be related to the removal of our dependency on Select2, but it is unclear why this has such an effect on the portal JavaScript.

      Attachments

        Activity

          People

            rlander Reece Lander
            rlander Reece Lander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: