On Confluence Cloud. I would like to create a page that lists ALL pages in a space and shows what labels are on each page. The list should include each page name and all of the labels applied to the page. If a page has no labels, the page would still be included in the list, but no labels would appear. I want to be able to have space managers view a single list of all the pages in their space and know what labels each page has or if a page has no labels.
Hi @Janet Dixon There's no straight forward way of doing this as far as I know. You might need to do it programatically using REST API. Refer the documentation here.
You can use below endpoint to return all pages with their labels - (replace your site name/spacekey)
https://yoursite.atlassian.net/wiki/rest/api/content?spacekey=<spacekey>&expand=metadata.labels
Then you can parse the results and show it as an html on a confluence page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kishan SharmaI actually just found an easier way to do this that works perfect. I installed the add-on CQL Search, which is free: https://marketplace.atlassian.com/apps/1213090/cql-search?hosting=cloud&tab=overview
I then used the CQL Query macro, checked boxes for the items I wanted to display, one of which was a labels column, and set the query for all pages in a specified space:
space=spacekey and type=page
I now have a page with a beautiful list of all the pages in the space with their respective labels, whether they have a label or not. Now I can see all the pages that have no labels and what labels are applied to the other pages. Now if I could only get them to display and be organized in a page tree format. That challenge, if it's possible, is for another day!
I think this is the easiest solution for people wanting to display a list of pages with no labels or all labels in order to manage labels throughout the system.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.