Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,347
Community Members
 
Community Events
165
Community Groups

Can I list all pages of a space, showing if or if not they have a label attached?

In my case, I want to make sure, that certain pages do have a certain label, even if they were created via "blank page" (instead of using the correct customized page template).

Is there an option to do so, e.g. a simple list with all pages of a space in one column and used lables (or empty field) for each page in a second column?

2 answers

Hi again and thanks to @Srinatha T for your inspiration.

I now made a big step forward using this CQL:

label not in ("label1","label2") AND type=page AND space.key="spacename"

The output I get from that is a plain list with two coloums - "Title" and "Space"

Is it possible to change the output? e.g. to "Title" and "Label"?

Thanks for any further inspiration :)
KR Siegfried

0 votes
Srinatha T Atlassian Team May 16, 2022

HI @Siegfried Steins ,

Welcome to Atlassian community.

I think you can achieve that using a database query but I will have to figure that out. But you can get the results by doing a simple search as well. Below CQL will list all the pages which does not have a label. 

Run a simple CQL.

type:page NOT labelText:[a TO z] AND NOT labelText:[0 TO 9]

Install an Add-on

Alternatively, there is a app which may be considered page-list-show-pages-without-label .  Just search on market place and you will be able to find a lot of options. You can choose which ever works. 

 

Thanks,

Srinath T 

Hi @Srinatha T and thank you very much for the warm welcome and you fast answer.

However, I get an error message "Could not parse cql"
And I'm afraid it's a little bit more complicated, as users might add labels on each page by themselves (which is wanted), but I have to check, whether certain defined lables are attached in order to organize our views via page property macros.

Probably, it's possible to adjust the CQL? (I already used JQL, but not CQL so far)

Thanks a lot in advance :)
KR Siegfried

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

895 views 11 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you