URL or hyperlink to page creation via template

Matthew Arno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 12, 2018

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

 

2 answers

1 accepted

4 votes
Answer accepted
Jason B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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

Matthew Arno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2018

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
Casey Meijer
Contributor
November 30, 2021

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

Like # people like this
Marcel Kleinlütke
Contributor
January 12, 2022

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
Casey Meijer
Contributor
January 12, 2022

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
Casey Meijer
Contributor
January 12, 2022

Maybe @Jason B can direct us to some documentation?

Like Marcel Kleinlütke likes this
Kirstin Seidel-Gebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 2022

This helped a lot. Thank you all!

Nikhil Owalekar July 10, 2023

This does not work anymore. Any alternatives ?

Kirstin Seidel-Gebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2023

Which Confluence version are you on, Nikhil?

Nikhil Owalekar July 11, 2023

I just noticed that the question has the `confluence-server` tag. I'm on Confluence cloud though.

License Information for Confluence Cloud

Confluence 1000.0.0-7bc17ff2a92f

Kirstin Seidel-Gebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2023

This article is about Confluence Server. It seems that this does not work on Cloud - at least not the same way.

0 votes
Austin G May 17, 2023

@Sam Lucas this is another article that highlights the issue. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events