Displaying a page's labels inline as a list or string

Andy D_Arcy-Jewell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2024

Is there a way (macro maybe?) to display all of a page's labels on a line or in a list, without links to other matching pages? For example, if I have a page with labels (label1, label2, label3) defined, is there a way to display this in the page like:

Labels: label1, label2, label3

or:

Labels:

  • label1
  • label2
  • label3

or a similar format. 

For context, in our existing knowledgebase in another product, which we are porting to Confluence, we have a "keywords" field that helps categorise the documents, but using the various Confluence macros like "filter-by-labels" or similar, intermingles links to other documents, making it hard to see the definitive list in one place, without entering the manage macros dialog.

2 answers

1 vote
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 23, 2024

Have you looked at using the 'label list' macro?

 

Andy D_Arcy-Jewell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2024

Yes, I did, but it seems to list "all labels within the current space" which is not what I need. I need just the labels that apply to the document that the macro is run in.

0 votes
Barbara Szczesniak
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.
July 24, 2024

@Andy D_Arcy-Jewell Welcome to the community.

I don't use labels myself, but I just added a few on a page in my personal space. I now see this at the bottom of the page:

labelsonpage.png

Does this list not meet your needs?

Suggest an answer

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

Atlassian Community Events