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

JavaScript error upon setting issue type in create screen when there are hidden fields using the wiki renderer

    XMLWordPrintable

Details

    Description

      Problem

      The problem is related to the wiki fields (both system wiki-style fields and custom fields with "Wiki Style Renderer" renderer) being hidden on the issue create screen for a particular issue type.

      A JavaScript error is thrown in web browsers when changing the project issue type via Issue Create screen:

      Uncaught TypeError: Cannot read property 'triggerEvent' of undefined
          at Object.detached (batch.js?agile_global_admin_condition=true&healthcheck-resources=true&is-server-instance=true&is-sy…:68051)
      

      or

      Exception: Uncaught TypeError: j.trigger is not a function
      

      Steps to reproduce the problem

      1. Kanban Board > Create Issue
      2. Select Configure Fields
      3. Set to Custom
      4. Uncheck a Field that has a Wiki Style Render enabled (i.e. Description)
      5. Change issue type > ERROR

      Workaround

      The easiest workaround is to show all the wiki-style fields for issue create screen of a particular issue type:

      • You could simply show all fields in there:
      • Or just check to show only the particular wiki-style fields (e.g. on the following screenshots "Environment" system field and "MyCustomField1" use Wiki Style Renderer):

       

      BTW Disabling the RTE plugin won't help since the issue is in good old JIRA Wiki Editor plugin, not in RTE.

       

      Attachments

        1. show all fields.png
          show all fields.png
          126 kB
        2. cf.png
          cf.png
          85 kB
        3. all.png
          all.png
          84 kB
        4. env.png
          env.png
          83 kB
        5. Pasted image at 2017_03_26 11_32 PM.png
          Pasted image at 2017_03_26 11_32 PM.png
          223 kB
        6. Pasted image at 2017_03_26 11_32 PM.png
          Pasted image at 2017_03_26 11_32 PM.png
          223 kB
        7. JRASERVER-64088.webm
          2.74 MB

        Issue Links

          Activity

            People

              mdyro 🦊 Fox (Inactive)
              ibruzgin Ivan Bruzgin (Inactive)
              Votes:
              13 Vote for this issue
              Watchers:
              51 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: