-
Bug
-
Resolution: Fixed
-
Low
-
7.2.0, 7.4.3, 7.4.4, 7.4.7, 7.5.1, 7.6.2, 7.10.2, 7.11.2
-
None
-
13
-
Severity 3 - Minor
-
18
-
Issue Summary
Javascript error when creating Jira issue from highlighted text
Steps to Reproduce
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
In Confluence
- Create a page with text
- 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