createpage.action vs createpage-entervariables.action and template

URL 1 - /pages/createpage-entervariables.action?spaceKey=XXX&title=XXX&linkCreation=true&fromPageId=xxx&templateId=xxx

URL 2 - /pages/createpage.action?spaceKey=XXX&title=XXX&linkCreation=true&fromPageId=xxx&templateId=xxx

I would like to understand the difference between createpage-entervariables.action and createpage.action. I am trying to add a link to a page which will create a page if not exists, but will just behave like a link if it already exists. URL 2 above, the one with createpage.action does that, but it does not take in a parameter to specify template, it ignores templateId=xxx parameter. The createpage-entervariables.action (URL 1) does take the parameter templateId=xxx, but it always tries to create a new page, even if the one with the title exists.

I would like to know if there is a way createpage-entervariables.action can behave like createpage.action with respect to create behavior (that is create only if not exists) or for createpage.action to take the template as a parameter.

4 answers

This widget could not be displayed.

Please le me know if you found a solution, I am trying to automate wiki page creation based on a template.

This widget could not be displayed.

Me too, please :-)

This widget could not be displayed.

There is a feature request to add this functionality to Confluence API: CONF-11393, but I do not think this is possible yet.

This widget could not be displayed.

We need exactly the same behaviour. Either create the page based on a template and if the page exists just open it like a normal link.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

96 views 12 6
Read article

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