atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

[Confluence] create_or_update() fails on archived pages

Open craigatfetch opened this issue 2 years ago • 3 comments

When calling create_or_update() on an existing, archived page - the call fails.

It raises atlassian.errors.ApiNotFoundError(). The exception message is: "Can not find draft with current content".

If that archived page is then manually restored - the call succeeds.

Using package version 3.32.2

craigatfetch avatar Jan 31 '23 00:01 craigatfetch

@craigatfetch What behaviour is most expected?

gonchik avatar Feb 11 '23 05:02 gonchik

@craigatfetch Hi! will it be helpful if method will change status of page. if it is archived, will return log info about status of page

gonchik avatar Feb 24 '23 20:02 gonchik

I would automatically unarchive the page and update it. Possibly add an option to the API to not change the status and return a status.

craigatfetch avatar Mar 01 '23 18:03 craigatfetch