Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
4.4, 4.4.1, 6.3.8, 6.4.4
-
Confirmed with Confluence 3.5.9 as well as 4.0.
-
4.04
-
56
-
Severity 3 - Minor
-
2
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
After upgrading JIRA to 4.4.x the JIRA issues Macro does not work as expected if you set some custom fields as columns. It occurs either using the old one or the new syntax. The following error message is logged on Confluence side:
2011-10-16 14:08:00,541 ERROR [http-18050-14] [confluence.extra.jira.JiraIssuesManager] getChannelElement Error while trying to assemble the issues returned in XML format: Error on line 111: The entity name must immediately follow the '&' in the entity reference. -- url: /test/PD/1.11+Release+Notes | page: 11123123 | userName: testuser | referer: https://testinstance.com 2011-10-16 14:08:00,544 ERROR [http-18050-14] [confluence.extra.jira.JiraIssuesMacro] throwMacroException java.io.IOException: Error on line 320: The entity name must immediately follow the '&' in the entity reference.
It occurs because there are some custom field options containing the character '&' in the results. Confluence faces the '&' it expects an entity reference on the sequence, but this is just the name of an option of the custom field.
The proposed resolution is to make Confluence able to automatically escape this char from the XML file or improve the error message on both sides.
Workaround
There currently isn't much to do other than make sure that Jira does not send to Confluence any issues containing the '&' symbol, and this means you will need to:
- Or replace the & symbol by what it usually means, the word 'and', which is the preferred workaround
- Or add some validation to the Jira Query Language so as not to include issues containing the & symbol at all. Jira does not allow searching for issues not containing a text, so the workaround from this article could be used instead by:
- Searching for text ~ '&' and saving this as a filter named like ampersand-symbol
- Adding this to the JQL already in place, like this:
AND filter != ampersand-symbol
This would exclude issues containing the '&' symbol from what Jira sends to Confluence and will fix the issue in Confluence side. The problem with this second approach is that some Jira issues will not be presented in Confluence side.
Attachments
Issue Links
- causes
-
CONFSERVER-26415 Problem with "jiraissues" macro when specifying issuetype with "&" symbol
- Closed
-
CONFSERVER-26770 Special character, in a JIRA project doesn't render in JIRA issue Macro.
- Closed
- is related to
-
CONFCLOUD-76451 Custom fields with "&" in the title fail to load data in the Jira issue macros
- Closed
-
JSP-212705 Loading...
- relates to
-
CONFCLOUD-53037 JIRA Issue Macro will not show if the Epic Link contains '&'
- Closed
-
JRACLOUD-25992 On Confluence, Jira Issues Macro does not work with some custom fields after upgrading to JIRA 4.4.x - "Unable to determine if sort should be enabled"
- Closed
-
JRASERVER-25402 Ampersands (&) in custom field values can causes error with Issue Navigator XML view
- Closed