Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-59691

JavaScript `Syntax error, unrecognized expression: option[value='-1'` when creating Jira issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.12.0
    • 7.2.0, 7.4.3, 7.4.4, 7.4.7, 7.5.1, 7.6.2, 7.10.2, 7.11.2
    • Integrations - Jira
    • None

      Issue Summary

      Javascript error when creating Jira issue from highlighted text

      Steps to Reproduce

      In Jira
      1. Create a project
      2. Create a custom field
      3. Assign this field to the project's all screens
      4. Make the custom field compulsory
      5. Make the built-in 'Description' field optional
      In Confluence
      1. Create a page with text
      2. Highlight text to create a Jira issue

      Expected Results

      Popup loads without any issue and user is able to create a Jira issue

      Actual Results

      Popup loads but Getting Required Fields loads indefinitely

      Error found from Developer Tools console

      onClick @ batch.js?healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:3151
      (anonymous) @ batch.js?healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:4373
      dispatch @ batch.js?locale=en-US:44
      v.handle @ batch.js?locale=en-US:44
      Show 51 more frames
      batch.js?locale=en-US:44 Uncaught Error: Syntax error, unrecognized expression: option[value='-1'
          at Function.re.error (batch.js?locale=en-US:44)
          at re.tokenize (batch.js?locale=en-US:44)
          at Function.re (batch.js?locale=en-US:44)
          at Function.c.find (batch.js?locale=en-US:64)
          at c.fn.init.find (batch.js?locale=en-US:44)
          at c.fn.init.c.fn.find (batch.js?locale=en-US:66)
          at i.<anonymous> (com.atlassian.confluence.plugins.confluence-jira-content:confluence-jira-content-resources.js?locale=en-US:284)
          at f (batch.js?locale=en-US:228)
          at i.trigger (batch.js?locale=en-US:228)
          at i._onModelEvent (batch.js?locale=en-US:228)
      

      Workaround

      Make description field compulsory

              zxu2@atlassian.com Zac Xu
              ppragasam@atlassian.com Puventhira Pragasam (Inactive)
              Votes:
              18 Vote for this issue
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: