Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Labels from a template do not appear on the page created by the template Edited

Deleted user Jan 16, 2020

Hello,

i have a quick question about labels. I have several templates and I wanted to give the user directly 2 labels with which I can filter and display content on other levels. I wanted to make sure that the right labels are on the page when the user creates the page using the template.

Now I have unfortunately noticed that if I add the labels in the template and then create a page over it, the labels do not appear on the newly created page.

Have I done something wrong?

 

Addition: I just noticed that it works for the first creation through the template. But from the second time not there the labels don't appear anymore. They are then also deleted in the template ?!?! Now I'm really confused.

 

5 answers

1 accepted

0 votes
Answer accepted
Veera Atlassian Team Jan 16, 2020

@[deleted] 

No, you haven't anything wrong. It's a known bug in Confluence which is being tracked here: CONFCLOUD-38181 

Unfortunately, there is no known workaround as well.

Deleted user Jan 16, 2020

Thank you very much for your quick answer. Then I hope for the soon implementation of the solution for this bug.

Like Veera likes this
Veera Atlassian Team Jan 16, 2020

You are welcome @[deleted] 

Please help resolve this.  It is really effecting the roll out of out new docoument process which hinged on labels and page property reports

I was going to suggest that "Page Properties" might be a workaround. But nope.

The "Page Properties Report" requires a page label. So even adding a "Page Property" to a template (to report on instead of a label) won't work.

I do want to point out that built-in templates (such as "Retrospective") actually do seem to generate pages with labels. So I'm not quite sure what functionality is missing here from an implementation perspective.

All: please cast a vote for CONFCLOUD-38181 

_ _ _ _ _ _ _ 

If you like writing code, apparently you CAN work around this by creating a Blueprint (rather than just a standalone template). It looks like the Index page that is part of a Blueprint can specify the label used on newly generated pages. From the docs:

"...relies on Confluence labels to be applied to the pages created via blueprints, which is specified by the index-key attribute on the blueprint module."

See: https://developer.atlassian.com/server/confluence/confluence-blueprints
(quote above is from the "Index Pages" section)

The issue is that before the new page format you could do the following

  • Create labels on a template - so when a page was created using the template the labels on the template were present (this is missing)
  • When in edit mode for a page, you could add / edit templates.  Now you have to add / edit labels after publishing a page.  This makes labelling a secondary action rather than one done during the edit process

The first of these is a big deal as our standard project documentation uses a set of defined labels.  Will investigate the blueprints thing, but am unsure I want to "develop" something, especially when it used to exist

If you haven't already, and it is a "big deal" for you, please be sure to vote on this related ticket: CONFCLOUD-38181 

For now (in March 2020), I found a way to get similar "template / generate button / index" behavior with the following workaround approach:

  • Completely abandon page Labels and Page Properties for custom templates. (If you are using Blueprints, then stop reading, this doesn't apply to you).
  • Your template will just create a page with no "markers" (labels or properties).
  • Customize your "index" page (the list of pages generated from the template) to have a "Create from template" macro. Tip: I like to wrap my button in an "Info panel".
  • Remove any Page Property Report or Content by Label macros on your index page, and replace them with a simple Child Pages macro. Tip: I like to wrap my list in a one-cell table to frame it.

The attached screenshot shows how my resulting "index" page looks, with sub-pages generated from the template using the button. 

Custom Template Workaround Example.png

I encountered the same issue today. However, I noticed the following behaviour:

  • Adding a new label into a template, hitting save, and then created a new page with the template, results in labels being created as expected.
  • If I then edit that template, and hit save, and then created a new page with the updated template, results in labels NOT being created as expected. 
  • If you go back into the updated template, you will notice that the label has disappeared from the template.

However, if you did this instead:

  • Adding a label into a template, hitting save, and then created a new page with the template, results in labels being created as expected.
  • If I then edit that template, click on labels and verify that the new label is still there, and hit save, and then created a new page with the updated template, results in labels being created as expected. 

So, it seems that Confluence template editor removes all labels from the template, unless you open up the label editor prior to saving the template. 

Hope this helps.

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

480 views 24 9
Join discussion

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