Hey,
I'm trying to write user macro for confluence that run CQL search and the results will show in a table with columns.
I have written a user macro that gets all child pages form parent and divide then to columns
## @noparams
#set ( $descendantPages = $pageManager.getDescendents($content) )
#set( $urlbase = "http://test.com" )
<table>
<tr>
<th>Page name</th>
<th>Page URL</th>
<th>Created by</th>
<th>Last updated by</th>
<th>Last update date</th>
</tr>
#foreach ( $page in $descendantPages )
<tr>
<td>$page.title</td>
<td>$urlbase${req.contextPath}$page.urlPath</td>
<td> $page.creator.name </td>
<td> $content.getLastModifierName()</td>
<td>$action.dateFormatter.format($page.lastModificationDate)</td>
</tr>
#end
</table>
I need that the CQL search will be -> cql=macroName:widget
Thanks!