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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note that you can also use the GET parameter fromPageId=XXXXXX to create the page under a parent page with id XXXXXX.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks good. Is there an documentation which parameter I can add to the URL... add a label, add a watcher and so on?!?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This helped a lot. Thank you all!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which Confluence version are you on, Nikhil?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just noticed that the question has the `confluence-server` tag. I'm on Confluence cloud though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This article is about Confluence Server. It seems that this does not work on Cloud - at least not the same way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.