Create Page action with provided labelString parameter in Confluence 4.*

Is there a way to add predifined labels to a create page action link in Confluence, such as:

http://foo.com/confluence/pages/createpage.action?spaceKey=ds&title=foo22&labelsString=foolabel

in Confluence 3.* labelsString as parameter is recognized in 4.* the parameter is ignored. Is there a reason for this?

There is a new labels dialog instead of an input field, but I guess it could be not *that* hard to consider the URL parameter inside the dialog. There is even a hidden field with "createPageLabelsString" set to the right value. Do I miss something?

Being able to create Links with predefined values is really an important feature!!!

2 answers

1 accepted

It's still possible with the parameter labelsString, they just won't show up in the dialog before saving. See my answer here: https://answers.atlassian.com/questions/23087/should-passing-the-url-parameters-for-createblogpost-action-work-with-confluence-4-0-as-well/23112

Hope this helps

Thanks for your answer. I was aware that the provided labels are actually saved with the page. The thing is IMHO this behavior confuses the end user when she edits the labels and these provided labels don't show up.

I had this problem some time ago in a project and I solved it with a JavaScript workaround -- I guess the one that someone mentioned in your link.

Thanks anyway. I should have marked the answer as closed...

It might have to do with: https://answers.atlassian.com/questions/69914/add-label-in-content-editor-bug-labels-are-not-visible and therefore: https://jira.atlassian.com/browse/CONF-18018

(the size of this image is actually much bigger to see the original do something like right click and open image in new tab)

I could not reproduce the described issue from the related answers question, but mine might have todo with it.

A plain vanilla Confluence 4.3.1 installation (through the SDK):

http://localhost:1990/confluence/pages/createpage.action?spaceKey=ds&labelsString=foo%20bar

The labels are stored in the hidden form field "createPageLabelsString" and taken into account when the page is saved. Unfortunately a user does not get to see them in the Labels dialog.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

399 views 17 9
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you