Jira issue show error after JIRA macro upgrade to 11.x

Failed to execute the JIRA macro. Cause: [The element type “customfieldvalue” must be terminated by the matching end-tag “”.]. Click on this message for details.

org.xwiki.rendering.macro.MacroExecutionException: Failed to retrieve JIRA data from [https://nerokwik.atlassian.net] for JQL [issueKey in (AIW-2708)]

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getXMLDocument(AbstractJIRADataSource.java:91)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.source.ListJIRADataSource.getData(ListJIRADataSource.java:79)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.JIRAMacro.execute(JIRAMacro.java:102)

at wiki:xwiki//org.xwiki.contrib.jira.config.internal.AsyncJIRAMacro.executeCodeMacro(AsyncJIRAMacro.java:106)

at wiki:xwiki//org.xwiki.contrib.jira.config.internal.JIRABlockAsyncRenderer.execute(JIRABlockAsyncRenderer.java:119)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)

at org.xwiki.rendering.async.internal.AsyncRendererJob.runInternal(AsyncRendererJob.java:101)

at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)

at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: org.xwiki.contrib.jira.macro.JIRAConnectionException: Failed to parse JIRA XML content [<!–

RSS generated by JIRA (1001.0.0-SNAPSHOT#100291-rev:f56d3133991a4abae1b3282cc1b7dd184d512591) at Fri Mar 13 03:47:43 UTC 2026

It is possible to restrict the fields that are returned in this document by specifying the ‘field’ parameter in your request.

For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.

JIRA

An XML representation of a search request
en-us


1001.0.0-SNAPSHOT
100291
12-03-2026

\[AIW-2708\] \[AIW\] Update Mac App Store badge for AIU

AIW-2708

\[AIW\] Update Mac App Store badge for AIU Done Unassigned truman tian Fri, 14 Feb 2025 17:45:55 +0800 Wed, 26 Mar 2025 16:39:48 +0800 Wed, 19 Mar 2025 11:42:36 +0800 ai_2.14.1 0 3 2 hours 0 minutes 2 hours Approvals Development Organizations Rank 0|i07373: Resolved by 62c5993e2c528400c9b67b5a Sprint Suite-CN Sprint 237 Verification Efforts (hr) 0.2 Verifier ewang \[CHART\] Date of First Response Thu, 20 Mar 2025 04:00:05 +0000 \[CHART\] Time in Status \]

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.fetch(HTTPJIRAFetcher.java:80)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getXMLDocument(AbstractJIRADataSource.java:87)

… 12 more

Caused by: org.jdom2.input.JDOMParseException: Error on line 113: The element type “customfieldvalue” must be terminated by the matching end-tag “”.

at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:234)

at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:253)

at org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1079)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.lambda$fetch$0(HTTPJIRAFetcher.java:73)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.performRequest(HTTPJIRAFetcher.java:140)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.fetch(HTTPJIRAFetcher.java:73)

… 13 more

Caused by: org.xml.sax.SAXParseException; lineNumber: 113; columnNumber: 52; The element type “customfieldvalue” must be terminated by the matching end-tag “”.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:217)

… 18 more

Jira

Failed to execute the JIRA macro. Cause: [XML document structures must start and end within the same entity.]. Click on this message for details.

org.xwiki.rendering.macro.MacroExecutionException: Failed to retrieve JIRA data from [https://nerokwik.atlassian.net] for JQL [issueKey in (SAS-1966)]

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getXMLDocument(AbstractJIRADataSource.java:91)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.source.ListJIRADataSource.getData(ListJIRADataSource.java:79)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.JIRAMacro.execute(JIRAMacro.java:102)

at wiki:xwiki//org.xwiki.contrib.jira.config.internal.AsyncJIRAMacro.executeCodeMacro(AsyncJIRAMacro.java:106)

at wiki:xwiki//org.xwiki.contrib.jira.config.internal.JIRABlockAsyncRenderer.execute(JIRABlockAsyncRenderer.java:119)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)

at org.xwiki.rendering.async.internal.AsyncRendererJob.runInternal(AsyncRendererJob.java:101)

at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)

at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: org.xwiki.contrib.jira.macro.JIRAConnectionException: Failed to parse JIRA XML content [<!–

RSS generated by JIRA (1001.0.0-SNAPSHOT#100291-rev:f56d3133991a4abae1b3282cc1b7dd184d512591) at Fri Mar 13 03:47:43 UTC 2026

It is possible to restrict the fields that are returned in this document by specifying the ‘field’ parameter in your request.

For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.

JIRA

An XML representation of a search request
en-us


1001.0.0-SNAPSHOT
100291
12-03-2026

\[SAS-1966\] The AI video task still exists, but the resources have already been deleted. Unresolved leviwang Tom Yu Sat, 28 Feb 2026 11:55:48 +0800 Thu, 5 Mar 2026 13:38:07 +0800 0 1 1 day 1 day Relates ZMR-642 Approvals Development Organizations Rank 0|i000m8:004040000000000i000409000032004 Sprint Suite-CN Sprint 260 \]

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.fetch(HTTPJIRAFetcher.java:80)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getXMLDocument(AbstractJIRADataSource.java:87)

… 12 more

Caused by: org.jdom2.input.JDOMParseException: Error on line 98: XML document structures must start and end within the same entity.

at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:234)

at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:253)

at org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1079)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.lambda$fetch$0(HTTPJIRAFetcher.java:73)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.performRequest(HTTPJIRAFetcher.java:140)

at wiki:xwiki//org.xwiki.contrib.jira.macro.internal.HTTPJIRAFetcher.fetch(HTTPJIRAFetcher.java:73)

… 13 more

Caused by: org.xml.sax.SAXParseException; lineNumber: 98; columnNumber: 331; XML document structures must start and end within the same entity.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:217)

… 18 more

Jira

Here’s the reply provided by a LLM (in case it helps you):

Hi @rock,

Thanks for reporting this issue. Based on the error stack trace, this appears to be a problem with malformed XML being returned by your JIRA Cloud instance rather than an issue with the XWiki JIRA macro itself.

The errors indicate that JIRA is generating invalid XML in its RSS feed responses:

  • The element type "customfieldvalue" must be terminated by the matching end-tag ""
  • XML document structures must start and end within the same entity

This typically happens when custom field values in JIRA contain special characters or formatting that isn’t being properly escaped in the XML output.

Possible solutions:

  1. Check your custom fields: The issues AIW-2708 and SAS-1966 likely have custom field values that contain problematic content (possibly special XML characters, emoji, or formatting). Try editing these issues and simplifying the custom field values.

  2. Use the REST API instead: You might want to consider using JIRA’s REST API v2/v3 instead of the RSS/XML feed if your JIRA macro version supports it. The REST API uses JSON which is generally more robust.

  3. Contact Atlassian Support: Since you’re running JIRA 1001.0.0-SNAPSHOT (a development/snapshot version), this may be a known issue with that specific JIRA version. Consider upgrading to a stable JIRA Cloud release or reporting this to Atlassian.

  4. Temporary workaround: As a workaround, you could try filtering out the problematic issues from your JQL query or avoid displaying certain custom fields that might contain the problematic data.

Could you check if those specific JIRA issues (AIW-2708 and SAS-1966) have any unusual custom field values, particularly in fields with names like “Rank”, “Organizations”, “Sprint”, or other custom fields shown in the partial XML output?

Let us know if any of these suggestions help!