Hey all,
My team has recently noticed that somehow a large number of our pages were moved to the Trash. We're currently migrating from Confluence to ADO so not sure if something went awry in this process, but we need these pages restored so we can migrate them as well. I can only see a way to restore one file at a time, but I think there's over 3,000 pages in the Trash right now so that's not really feasible. This estimate comes from the HTML Inspector in my browser showing at least 3160 rows in the trash table.
I tried looking into creating a Rule to automate the process, but I don't see any field in CQL that captures if a page is in the Trash (I could be missing something though). I tried asking Atlassian Intelligence to create an automation rule to "Restore all pages from trash", but it seems to just hallucinate a "state" field that fails validation.
It seems a bit silly there's an option to "Purge all", but not "Restore all" - or even implement multi-select in the UI for that matter. Does anyone have a recommendation for how to remediate this? We just don't have the time as a team to manually restore this many pages individually.
Thank you!
Welcome to the community.
I think you can try to perform a bulk restoration via the following REST API.
For your information, you can also retrieve the complete list of pages in the trash via the following API endpoint below:
<base_url>/wiki/rest/api/content?type=page&status=trashed
Thank you.
Thank you Victor! My team will investigate the feasibility of using this API endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
unfortunately there is no option out of the box for this https://jira.atlassian.com/browse/CONFCLOUD-76215
It seems that it should be possible using an app https://community.atlassian.com/forums/Confluence-articles/Using-CLI-s-renderRequest-to-bulk-restore-deleted-pages-on/ba-p/2306685
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mohamed, good to see there's already an open issue for this. My team will investigate the feasibility of using the CLI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.