add-page labels parameter ignored

  • 3
  • Problem
  • Updated 2 years ago
  • (Edited)
I have thousands of pages based on a template that calls the add-page macro. The macro specifies a global template, and two labels to add to the new page. The template specified in the add-page macro has a label on it as well. Before I upgraded, new pages created by the add-page macro had only the labels specified in the add-page macro (one of them is the same as the label on the template, so I thought it was getting both sets of labels, but apparently it's actually not). After upgrading from Composition 3.0.17 to 4.0.0 (and Confluence 5.7.5 to 5.8.10), only the template's label is added to the new page, and not the labels specified in the add-page macro call, although they are shown on the Add Page screen.

I see that https://docs.servicerocket.com/display/LIN/add-page says: "The list of labels to attach to the new page. Only works for live-template pages." Is that a new restriction? I'm not using live-template, but this used to work.

I can't specify both required labels on the template because one of them is specific to the instance of the page that will be created by the add-page macro.

The macro call looks like this:
<ac:structured-macro ac:macro-id="d5e74a3e-34cc-4085-b3cb-41e1c576f1e4" ac:name="add-page" ac:schema-version="1">
<ac:parameter ac:name="prefix">Doc Review -</ac:parameter>
<ac:parameter ac:name="linkText">Create Document Review</ac:parameter>
<ac:parameter ac:name="source">Document Review</ac:parameter>
<ac:parameter ac:name="title">Create a document review for this Activity.</ac:parameter>
<ac:parameter ac:name="labels">JD-31436,doc-review</ac:parameter>
</ac:structured-macro>
Photo of Wendy Fergusson

Wendy Fergusson

  • 62 Posts
  • 1 Reply Like

Posted 3 years ago

  • 3
Photo of Nurhana Ziana Bt. Hanafi

Nurhana Ziana Bt. Hanafi, Employee

  • 3500 Posts
  • 269 Reply Likes
Hello Wendy,

In my testing, I found this issue started to occur in Confluence 5.8, with any of our Linking version. I will add a bug report for this.


Thanks&Regards,
Ziana
Photo of Wendy Fergusson

Wendy Fergusson

  • 62 Posts
  • 1 Reply Like
Thanks Ziana. I would really appreciate it if someone at ServiceRocket could look at my other recent problem report as well: https://community.servicerocket.com/servicerocket/topics/toggle-cloak-and-cloak-throw-null-pointer-e...
Photo of Nurhana Ziana Bt. Hanafi

Nurhana Ziana Bt. Hanafi, Employee

  • 3500 Posts
  • 269 Reply Likes
Replied :)
Photo of Wendy Fergusson

Wendy Fergusson

  • 62 Posts
  • 1 Reply Like
Thank you!
Photo of Andreas Heigl

Andreas Heigl

  • 3 Posts
  • 0 Reply Likes
Any news on this one? We're having the same issue and no clue on how to change that
Photo of Jens Kasperek

Jens Kasperek

  • 3 Posts
  • 1 Reply Like
Hi!

Unfortunately, we have the same issue now for a very large Confluence instance with a user base of 163,000 users!! So, many spaces are affected and we really ask for a fix on this issue since we are getting pressure from our internal customers.

Thank you in advance for taking care about this issue!

Best regards

Jens

Photo of uklugedd

uklugedd

  • 7 Posts
  • 0 Reply Likes
Hello Service Rocket,

we just ran into this bug too and are wondering that there is no fixed version so far. It's really really cumbersome to find and implement workarounds as well as communicate this issue to all of the users.

Do you have any plans for fixing that?

Best regards,
Uwe
Photo of Wolf

Wolf

  • 10 Posts
  • 0 Reply Likes
same with us here - we really need the labeling back ASAP, since many structure are crashing now without labels

PLEASE bring BACK that feature. Our users are really annouyed about it.....

Thanks
Wolfram
Photo of Wolf

Wolf

  • 10 Posts
  • 0 Reply Likes
BTW: we have 635 hits when searching for add-page macro... :-(
Photo of Andreas Heigl

Andreas Heigl

  • 3 Posts
  • 0 Reply Likes
Just as a short information: We've finally written our own macro that calls the following endpoint: 
    pagesaction/createpage-entervariables.action?templateName=$paramTemplateName&templateId=$paramTemplateID&linkCreation&spaceKey=$paramSpaceKey&newSpaceKey=$paramNewSpaceKey&fromPageId=$parentPageID&parentPageString=$paramParentPage&labelsAsString=$paramLabels
The important bit is the last parameter that holds a comma-separated list of labels without whitespace.

The other parameters should be more or less self explanatory.

Might help one or the other.
Photo of muweb

muweb

  • 2 Posts
  • 0 Reply Likes
I have tried to use this (replacing pagesaction with pages) but it still does not add any labels.  Currently I am having this issue with Confluence 5.9.7 when I try to create a page both with and without live-template. How can I get the labels to be added? Thanks!
(Edited)
Photo of Andreas Heigl

Andreas Heigl

  • 3 Posts
  • 0 Reply Likes
We're on 5.8 (AFAIK) and there it works without issues. Sorry that I can'T help you there... :(
Photo of Jens Kasperek

Jens Kasperek

  • 3 Posts
  • 1 Reply Like
We urgently need a fix on this issue for our large enterprise license! Please let us know when you will finally fix this issue. Thank you!
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Jens,

Excuse us for the delayed update. 

As you can see here, this is a known issue in Confluence version 5.8.x and 5.9.1.

We would suggest you to update Confluence to the latest version. Otherwise, you can create a support tickets on https://support.atlassian.com since this is a Confluence bug.

Thank you.

Regards,
Suresh
Photo of Jens Kasperek

Jens Kasperek

  • 3 Posts
  • 1 Reply Like
Hi Suresh,
Thank you for your update. I reported this issue to Atlassian. It is not resolved, so updating makes no sense.

However, it would be great if you as the vendor of this plugin could also put some pressure on this issue. Any workaround (may be a suggested one on this page) would also be nice to have!

Thanks in advance!