Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,730
Community Members
 
Community Events
176
Community Groups

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

3 votes
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 # people like 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

This helped a lot. Thank you all!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events