python polarion api how to access wiki/documentations and pages

533 views Asked by At

I am trying to use this Python library to do some automation. After reading the doc, I know how to access the work item and its subdirectory but there is another same level to the work item which is Documents & Pages or wiki as stated in the URL(https://polarion.engineering.abc.com/polarion/#/project/project_name/wiki/). I wonder if there is a way to access that. Here is what it looks like: enter image description here

I can easily access everything in Work Items but I would also like to access Documents & Pages to do some export. Is there any Python lib that can do that?

1

There are 1 answers

0
Jane On

I found another Python library that has a feature to fetch the wiki pages from Polarion. Here is the link: https://redhatqe.github.io/pylero/

It's as simple as:

from pylero.wiki_page import WikiPage
wikis = WikiPage.get_wiki_pages("project_id", "space_id", [fields])