I would like to know how I can render the current revision on a wiki page.

The situation is this:We have a wiki page that contains a traceability matrix, i.e. a table that shows requirement work items and related test case work items.The table content is generated via a macro that contains queries to retrieve the relevant work items in their current state.This table shall be exported to PDF on certain occasions, and I would like to include the revision from which the data were derived.

So far I have $[revision] included in the PDF footer. But this renders the revision when the wiki page code was last edited. What I need is the revision of the current table content.

(Additional question: How to get the relevant revision into the printout when exporting from an earlier revision, such as a baseline?)

Would you be willing to share your macro for generating tables from the trace data? I think we are trying to do a similar thing and go through a bunch of contortions to get our trace matrix from Polarion to Excel to PDF.

It appears that the base revision number ($baseRev) is displayed correctly, but the baseline name ($baseName) is empty.In case of using the macro in head revision, $headRev does not exist so only the variable name is displayed instead of its value.

On checking where the macro got stuck, I found this:$baselineManager exists, but $baseline does not, so $baseName remains empty. (I did assign a name to the baseline when creating it.)$polarionTool does not exist, so all following methods apparently do not work. (Do I need to install anything special in order to use $polarionTool?)I checked for existence with statements like this: #if(!$myVariable).