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

    • 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

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

            Neel made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 776393 ]
            Rinish made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 570133 ]
            Deepesh (Inactive) made changes -
            Affects Version/s New: 7.11.2 [ 94721 ]
            Deepesh (Inactive) made changes -
            Affects Version/s New: 7.5.1 [ 91990 ]
            Pascal Oberle made changes -
            Affects Version/s New: 7.4.7 [ 93606 ]
            Zac Xu made changes -
            QA Demo Status Original: Not Done [ 14330 ] New: Done [ 14331 ]
            Zac Xu made changes -
            Description Original: h3. Issue Summary
            Javascript error when creating Jira issue from highlighted text

            h3. Steps to Reproduce
            h5. In Jira
            # Create a project
            # Create a custom field
            # Assign this field to the project's all screens
            # Change built-in 'Description' field to optional

            h5. In Confluence
            # Create a page with text
            # Highlight text to create a Jira issue

            h3. Expected Results
            Popup loads without any issue and user is able to create a Jira issue
             !image-2020-04-08-14-12-35-472.png|thumbnail!

            h3. Actual Results
            Popup loads but *Getting Required Fields* loads indefinitely
             !image-2020-04-08-14-18-16-525.png|thumbnail!

            Error found from *Developer Tools* console
            {noformat}
            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)
            {noformat}

            h3. Workaround
            Make description field compulsory
            New: h3. Issue Summary
            Javascript error when creating Jira issue from highlighted text

            h3. Steps to Reproduce
            h5. In Jira
            # Create a project
            # Create a custom field
            # Assign this field to the project's all screens
            # Make the custom field compulsory
            # Make the built-in 'Description' field optional

            h5. In Confluence
            # Create a page with text
            # Highlight text to create a Jira issue

            h3. Expected Results
            Popup loads without any issue and user is able to create a Jira issue
             !image-2020-04-08-14-12-35-472.png|thumbnail!

            h3. Actual Results
            Popup loads but *Getting Required Fields* loads indefinitely
             !image-2020-04-08-14-18-16-525.png|thumbnail!

            Error found from *Developer Tools* console
            {noformat}
            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)
            {noformat}

            h3. Workaround
            Make description field compulsory
            Zac Xu made changes -
            Fix Version/s New: 7.12.0 [ 94703 ]
            Zac Xu made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            Zac Xu made changes -
            Status Original: In Review [ 10051 ] New: In Progress [ 3 ]

              zxu2@atlassian.com Zac Xu
              ppragasam@atlassian.com Puventhira Pragasam (Inactive)
              Affected customers:
              18 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: