This issue has been created
 
 
CQL / cid:jira-generated-image-avatar-dc8b831b-5b72-4475-a705-804c3e8b1bf8 CQL-7 Open

parent = currentContent() is incorrectly translated

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d3e3c392-9aac-46be-9926-c522a4615095 Raphaël Jakse created this issue on 07/Aug/25 09:33
 
Summary: parent = currentContent() is incorrectly translated
Issue Type: cid:jira-generated-image-avatar-dc8b831b-5b72-4475-a705-804c3e8b1bf8 Bug
Affects Versions: 0.1.0
Assignee: Unassigned
Created: 07/Aug/25 09:33
Priority: cid:jira-generated-image-static-major-2c1c6e24-1cba-462a-acf4-d3e21e5def59 Major
Reporter: Raphaël Jakse
Description:

parent = currentContent() is translated to space_exact:XX.YYY where XX.YYY is the XWiki page name of the current content without .WebHome. This would be correct for finding terminal pages, but we migrate Confluence content to non-terminal pages so the direct children are not found.

We need to translate this to something like space_exact:XX.YYY.ZZZ.WebHome where ZZZ doesn't contain dots, or something like this. Alternatively, we could use space_facet, and translate to something like (space_facet:N/.... AND -space_facet:N+1/....)