Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

URL or hyperlink to page creation via template

Hi - I'd like to use a hyperlink in Excel to automatically create a page in Confluence using a template. Currently I have a button on a Confluence page that uses a template to create a new page. Clicking this button goes to a URL that guides the creation of a page in a certain space using the template ID. e.g. https://[confluence]/?templateId=65175583&spaceKey=[spaceID]&newSpaceKey=[spaceID]&title=GPYYNNNN

 

**I have replaced the actual address and space keys with [dummy IDs]**.

 

I copy this link and paste it into Excel but when I click on it, instead of opening a new page using the indicated template, it opens an 'updates' page on confluence (#all-updates). Does the URL only work as part of a clicked button on a page?

 

Cheers,

Matt

 

1 answer

1 accepted

1 vote
Answer accepted
Jason B Atlassian Team Jun 15, 2018

Hi Matthew,

The button has some extra code in there to help it run, but it looks like it ultimately redirects to a different URL:

https://[confluence]/pages/createpage-entervariables.action?templateId=65175583&spaceKey=[spaceID]&title=GPYYNNNN&newSpaceKey=[spaceKey]

I tested this, and it seems to work for me. Give it a try and let us know how it goes!

Kind Regards,

Jason

Hi Jason - works a treat, thanks. I can also use values in the Excel file to populate the title; even cleverer!

 

Cheers,

Matt

Like Casey Meijer likes this

Note that you can also use the GET parameter fromPageId=XXXXXX to create the page under a parent page with id XXXXXX. 

Like Marcel Kleinlütke likes this

Looks good. Is there an documentation which parameter I can add to the URL... add a label, add a watcher and so on?!?!

Like Casey Meijer likes this

Unfortunately I haven't seen any such documentation.  I just experimented with manually adding pages and copied parameters from there (it can be a bit annoying though as it sometimes redirects quite quickly).

Like Marcel Kleinlütke likes this

Maybe @Jason B can direct us to some documentation?

Like Marcel Kleinlütke likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

1,047 views 8 42
Read article

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