New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Confluence]: Method to obtain page content #180
Comments
Hi! Cheers, |
1b875e8 seems to be about appending to a page. As far as I understand @argysamo request, this is about getting the whole content of a page. As simple use case would be:
Or is that already possible and I somehow missed it? |
@kierun Well, you can do in different ways i.e. https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/confluence.py#L505 |
@gonchik When trying previous i am getting: |
SHould be I think: |
@freeyland on which did you try it? |
It is working, made a mistake in my code. Thnx for quick reply |
@gonchik When Updating Im getting: Hallo (through reference chain: com.atlassian.confluence.api.model.content.Content["ancestors"]->com.atlassian.confluence.api.model.content.Content["id"])'}body.replace("Hallo", "Hallo2") result = confluence.update_page( parentID, pageID, 'Versions & Changelogs', body, 'page', 'wiki')
|
Please, check the order of variables |
It would be nice to have a method to obtain the body of a given page.
You could then update a page, making modifications to its body.
This method will have as an input the page_id and return the page body content formatted as html.
I will soon submit a PR to fix this issue.
(If I am not mistaken, the current
update_or_create()
method replaces the content of the page.)Kind regards,
Argyris
The text was updated successfully, but these errors were encountered: