Is there a method to get all the LiveDoc Documents of a project in Polarion

1.9k Views Asked by At

Is there a method to get all the LiveDoc Documents of a project I want to use this in Scheduler script

1

There are 1 best solutions below

3
On BEST ANSWER

Luckily there is a nice function in the API which is never exposed to the Polarion UI (would really like to hear the story about this).

This is a velocity script getting all Documents (They are called "Modules" in the API) in a single project:

#foreach($doc in $trackerService.dataService.searchInstances($trackerService.dataService.getPrototype("Module"), "project.id:$page.project", "space,id"))
* $doc.id
#end 

The API call searchInstances() can find you anything: User, Workitems, Testruns, Documents ,etc.