Can I trigger a template from a link?

I am trying to setup a series of templates for users to fill in with Confluence (ondemand).

I want to be able to trigger the creation of a new sub page based on a specific template so that the user can simply click "New XXX" on an existing page and create a new page based on the appropriate template.

2 answers

1 vote
Bruno Rosa Atlassian Team Mar 11, 2013

Robin, I think you can. You just have to catch the URL of the create page of the targeted template and display it on the page you want. The URL will be something like this:


With that you will be able to create a link to point the user directly to the creation page from that template.


I always get a 404 as soon, as I append parameters to the action. Are you sure, it works that way? I investigated some time on this a few days ago, and it only worked without template.

e.g. I try:

(The ids are correct)

Ok this is looking promising, does anyone know if I can use variables eg. @currentpage and @currentspace?

This would make it far more usable and extensible as templates wouldn't have to be edited with knowledge of internal IDs.

This doesn't work for me.  When I try to capture it by creating via the + icon, it goes to one URL and quickly redirects to a new URL.  I'm unable to capture the first one.  The second one looks like this:




That obviously doesn't work due to the draftId. I tried removing that, and it still does not work properly.  It goes to a page that says "Something has gone wrong" then redirects to the new page creator.

No idea if this still is an issue for you but I think I've found an answer: if you remove the last part of the link, starting with "&fromPageId=" than I get a working link in my spaces. Additionally it appears that you can also delete "&title" and "&newSpaceKey". The "templateId" and "&spaceKey=..." seem to be needed to keep the link working. Kinda makes sense, not knowing the template ID nor the space to create the new page in will make it hard to create a page wink

Even with removing the other parameters, this still doesn't work correctly for me.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
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