If we are to hide the page in place, is there an API call for that?

Ritika Saini March 29, 2023

AIM: To automate the documentation cleanup process in the confluence server. There are various outdated and useless pages in a space. These pages will be reviewed by a team and they'll decide whether to keep the page or "hide" them. 

Once hidden these pages won't appear on search. Although these can be viewed by admins.

One way to do this is to create archived space and move useless pages to it. But we are trying to avoid the hassle of creating a separate space for archived pages. So instead is it possible to:

1. Hide the page in place?

2. If yes, how can it be achieved (is there any option for this manually)?

3. Is there an API to do this? Or automate this?

( I am looking for solutions which preferably do not involve the use of plugins, unless necessary)

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 29, 2023

Welcome to the Atlassian Community!

There is no "hide" in Confluence.  You can archive spaces to remove them from general view, but you're not going to be able to do pages without help from an app.

There are some apps that do enable easy page archiving, but there is another option - you could restrict a page away from all the users (restricting "view page" to a group that has no users is the easiest thing).  Even admins will still be able to see them in the "restricted pages" part of a space, but they'll have to de-restrict them to see the content.

You'll still need an app to automate restrictions.  Blatant advert here - you can write a script that adds restrictions to pages in Scriptrunner.  A simple example is at https://library.adaptavist.com/entity/restrict-page-based-on-user-group

Ritika Saini March 29, 2023

Seems helpful for my case. Thank you so much!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events