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

Change how custom fields define and load javascript

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Currently, all custom fields are told to ensure their javascript is loaded in the atl.general context. The disadvantages of this approach are:

      • Custom fields will only ever work in pages in the atl.general context – in other words, not admin and other areas.
        • For this reason, the quick-create dialog, for instance, cannot work in any section outside of atl.general (see JRA-36519).
      • The code to run custom fields will always be loaded, even when it doesn't need to (as in, the fields it should affect aren't used or present on the page)
      • The dump-it-into-a-context approach makes the implementation of plugins like the issue collector difficult – it has to load all JS assets for the atl.general context, rather than just the assets required to make the issue creation form work.

      We should build a better way to package up and deliver the assets required to make a custom field work.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cdarroch Daz
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: