How do you see and delete drafts in Confluence Cloud ?

Deleted user February 1, 2023

Alright, so I know I've seen this asked before.  But all the responses seem to be for DC and not for cloud.  I have created a couple drafts by accident (clicking + when I want to copy a page, for instance) and then closing the new page.

What has happened is then the parent page gets a nice little arrow like there's content below it but when I click the down arrow... nothing.  When I go to DRAFTS... nothing.  How do I find and delete draft pages in Confluence Cloud?  The side arrow is really impacting my OCD even though I'm pretty sure no one else sees it but me...

TIA

Ed

1 answer

1 accepted

1 vote
Answer accepted
Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2023

Hello @[deleted] ,

If you cannt see drafts in https://YOUR_SITE.atlassian.net/wiki/home/drafts, you can ytry REST API: 

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-get.

You can get the with 'status' query parameter, as:

https://YOUR_SITE.atlassian.net/wiki/rest/api/content?status=draft

 The same for space or branch level.

And after that you can send DELETE request by the draft id to delete it.

Anton Kozhin June 13, 2023

Hi @Andrii Maliuta!

Could you please advise if this REST API method (content?status=draft) still returns only my personal drafts? When do the call in Postman app it seems that I get only list of my drafts as I use Basic Auth with my credentials...

Is there a way to get drafts for all users or this is not possible via Postman and some sort if user impersonation is needed?

Thanks!

Andrii Maliuta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2023

Hello @Anton Kozhin ,

Yes, looks like currently for Cloud Confluence in Rest API v1 the ``` content?status=draft ``` returns just current user drafts, but I suppose it is possible to first get the list of pages for the definite author and then get drafts for these page IDs. 

E.g.:

1. Use CQL to get some user's pages:

https://INSTANCE.atlassian.net/wiki/rest/api/search?cql=type=page%20and%creator=%{USER_KEY}%22&expand=content.body.view.value,content.extensions,content.history

2. Loop through the IDs of the returned pages :

https://INSTANCE.atlassian.net/wiki/rest/api/content/{PAGE_ID}?status=draft

Documents:

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events