Users list for previous revision/baseline

Description
jaka.ivancic
Posts: 6
Joined: Wed May 20, 2015 1:34 pm

Users list for previous revision/baseline

Postby jaka.ivancic » Wed May 20, 2015 2:01 pm

Hello,

I'm trying to display wiki content that contains list of users on a project with {users} macro. Everything OK until I open an old revision or baseline.
The macro obviously isn't suited for revision proprety as I recieve following error:

Errors in macro "{users:fields=name, description,roles|revision=4931|query=@all|project=MY_PROJECT}"

Is there a (simple) way of displaying our project team for previous project baselines/revisions?

fbachmann
Posts: 48
Joined: Thu Apr 24, 2014 12:10 pm

Re: Users list for previous revision/baseline

Postby fbachmann » Wed Jun 24, 2015 2:09 pm

I don't have a just-use-this-code-in-your-wiki-page solution, but I'd go through the Repository browser:

Code: Select all

http://<your-polarion-server-name>/polarion/#/project/<your-project>/repository/browser/.polarion/security/user-roles.xml


and use the revisions of this file.
Does this help?
François

jaka.ivancic
Posts: 6
Joined: Wed May 20, 2015 1:34 pm

Re: Users list for previous revision/baseline

Postby jaka.ivancic » Tue Jul 14, 2015 8:02 am

fbackmann, the SVN browsing is OK but our management demands a wiki project team report page that changes if we switch to old baselines when the team was not the same.

Anyhow, support helped me figure out a way with XML parser, if someone bumps on a similar thing:

1. Install wiki scripting tools
2. Use the example XML code and add revision request

Code: Select all


#set($repoService = $polarionTool.repositoryService)
#set($connection = $repoService.getReadOnlyConnection($polarionTool.location))
#set($path = "/.polarion/security/user-roles.xml")
#set($location = $polarionTool.location.getLocation($path))
#set($location = $location.setRevision("$REVISION_FROM_CURRENT_BASELINE"))
#set($input = $connection.getContent($location))
#set($doc = $xmlTool.documentBuilderFactory.newDocumentBuilder().parse($input))
$doc.doWathever()


This approach is also useful for cheking whether someone was messing with timepoint dates...


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 5 guests