I have a Confluence page that's embedding a JIRA issues macro.
We have quite a few custom fields and the macro sometimes breaks based on how much or how little data is returned.
Here is flavor one of the JQL query:
project = (project name) AND issuetype = "(issue type)" AND status in (Open, "In Progress", Reopened) and cf[11201] = '(field setting)' ORDER BY cf[11208] ASC, cf[11206] ASC, createdDate DESC
This returns an issue list just fine.
Then if the search is broadened by removing the custom field we were filtering on:
project = (project name) AND issuetype = "(issue type)" AND status in (Open, "In Progress", Reopened) ORDER BY cf[11208] ASC, cf[11206] ASC, createdDate DESC
Suddenly the macro, embedded, displays:
Error rendering macro 'jira' : com.atlassian.confluence.macro.MacroExecutionException: java.io.IOException: Error on line 210: The content of elements must consist of well-formed character data or markup.