xwikisas / xwiki-pro-macros

XWiki rendering macros useful when migrating content from Confluence
GNU Lesser General Public License v2.1
3 stars 12 forks source link

Support for the CQL query ancestor = currentContent(), parent = currentContent() and id = currentContent() #328

Open iuliabalan opened 3 weeks ago

iuliabalan commented 3 weeks ago

When using currentContent() in a page imported from Confluence you get an error as we don't support yet currentContent(). Tested with tested Pro Macro 1.21.0 and Migrator Pro 1.23.1 and the error displayed was:

error

We would need to add support for the CQL query ancestor = currentContent(), also add parent = currentContent(), and probably id = currentContent().(Thanks @raphj )

raphj commented 3 weeks ago

To reproduce:

{{confluence_detailssummary cql="label = ~"mylabel~" and space = currentSpace() and ancestor = currentContent()"/}}

(note: this query has been anonymized, the position in the error in the screenshot won't match)

See https://jira.xwiki.org/browse/CQL-3