Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-77778

Icon picker popup doesn't open when adding a new priority

XMLWordPrintable

      Issue Summary

      The admin priorities page allows you to add, edit, and delete issue priorities. Both the add priority dialog (modal) and edit page display a form, which includes an Icon URL field.

      The select image link should open a pop-up window with an icon picker. This functionality is not working from the add priority dialog.
       

      Steps to Reproduce

      1. Navigate to ⚙️ (gear icon) > Issues > Priorities as a Jira administrator.
      2. Click add priority and then select image.

      Expected Results

      The icon picker popup opens. After selecting a value, the popup window closes and the Icon URL field is populated.

      Actual Results

      Nothing. The following error is printed in the browser JavaScript console:

      ViewPriorities.jspa:1 Uncaught ReferenceError: openWindow is not defined
          at HTMLAnchorElement.onclick (ViewPriorities.jspa:1:1)
      

      Workaround

      Manually enter a temporary/alternative value in the Icon URL field. Once saved, use the icon picker from the priority's edit page.

      Technical background

      The add priority dialog loads inline JavaScript to provide the popup's callback function. The web browser is not properly executing this script, so clicking select image causes a ReferenceError. This may be caused by web browser enhancements to reduce a potential XSS risk surface.

        1. picker.png
          438 kB
          Benjamin S
        2. priorities.png
          984 kB
          Benjamin S

              Unassigned Unassigned
              1353e2e9fd2f Benjamin S
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: