Page 1 of 1

SVN in WikiContent

Posted: Thu May 24, 2018 6:09 am
by Kakaomonster
Hello together,

I have a big problem to show a field in a table from WikiContent.
With the following code I have my table:

Code: Select all


All fields are ok - but not the field "revision" I test also "svn" and some other, but I can't get the revison number from the document. Can someone give me a hint?

Thanks, Ralf

Re: SVN in WikiContent

Posted: Wed May 30, 2018 12:25 pm
by Jürgen
Hi, Ralf

I think the reason that it is not displayed is that revision is not a field of the document. The wiki help for "pages" says, that only certain fields are possible here (in our Polarion version: name, title, project, space, updated, created, updatedby, createdby).

So I don't think it is possible to get the revision with that macro.


Re: SVN in WikiContent

Posted: Fri Jun 01, 2018 11:56 am
by SaoBit
Hello Ralf,

you don't get this information with the {pages} command. But you can try the following code:

Code: Select all

#set($pages = $trackerService.getDataService().searchInstances("RichPage", "", "id"))
#foreach($page in $pages)

The empty string in the first line is the search filter, the first parameter ("RichPage") is the prototype. To get every page, you have to do this again for other prototypes (Document, WikiPage). The fields are not formatted properly but give you the necessary hints to get it done.

Look at the Polarion API, especially there: ... ng.String- ... hPage.html

Re: SVN in WikiContent

Posted: Wed Jun 06, 2018 8:45 am
by Kakaomonster
Hello SaoBit,

thanks for your hint and the others for the help. I was some days not here this is why my answer is so late.

I will tested it directly,
thanks a lot, Ralf