The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Shawn Doyle - ReleaseTEAM
Community Champion
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 Champions.
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?

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events