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

HTML in custom field descriptions doesn't work on the Issue View

XMLWordPrintable

      Issue Summary

      Steps to Reproduce

      1. Create a Custom Field with the following description:
        <script type="text/javascript">
          alert("Javascript in Custom Field");
        </script>
        
      2. Add it to all screens.
      3. Edit the issue and add a value to the custom field.
      4. Reload the page

      Expected

      The JavaScript would be executed on page load, and the user would receive an alert in the browser.

      Actual

      The JavaScript is not executed, unless the custom field is edited (through inline editing).

      Notes

      • This happens even with the Enable HTML in custom field descriptions and list item values set to ON.

      Workaround

      Adapt the JavaScript to add it to the Announcement Banner instead.

              Unassigned Unassigned
              mfernandes@atlassian.com Matheus Fernandes
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: