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,465,769
Community Members
 
Community Events
176
Community Groups

Create a new page from a template with a hyperlink

Edited

Hi,

 

I am currently trying to force creating a new page with a template (Devops runbook) 

I tried the same url as mentioned in:

https://community.atlassian.com/t5/Confluence-questions/URL-or-hyperlink-to-page-creation-via-template/qaq-p/819221 

but my tries resultet in

image.png

 

https://COMPANY.atlassian.net/wiki/pages/createpage-entervariables.action?spaceKey=PE&title=RUNBOOKTITLE&linkCreation=true&fromPageId=39223297&templateId=e7bc19be-7c49-42a7-a414-f0bc4ce25007

It seems that my templateid differs from the example, but i can't find another one.

https://COMPANY.atlassian.net/wiki/rest/api/template/e7bc19be-7c49-42a7-a414-f0bc4ce25007

delivered me the following json:

 

{
"templateId":"e7bc19be-7c49-42a7-a414-f0bc4ce25007",
"originalTemplate":{
"pluginKey":"com.atlassian.confluence.plugins.confluence-business-blueprints",
"moduleKey":"devops-runbook-page"
},
"referencingBlueprint":"com.atlassian.confluence.plugins.confluence-business-blueprints:devops-runbook-blueprint",
"name":"DevOps Runbook",
"description":"devops-runbook.blueprint.content.template.description",
"labels":[
],
"templateType":"blueprint",
"editorVersion":"v2",
"body":{
"storage":{
"value":"<table data-layout=\"default\"><colgroup><col style=\"width: 176.0px;\" /><col style=\"width: 583.0px;\" /></colgroup><tbody><tr><th><p><strong>Runbook name</strong></p></th><th data-highlight-colour=\"#ffffff\"><p /></th></tr><tr><td data-highlight-colour=\"#f4f5f7\"><p><strong>Runbook description</strong></p></td><td><p /></td></tr><tr><td data-highlight-colour=\"#f4f5f7\"><p><strong>Owner</strong></p></td><td><p><ac:placeholder>@ mention the owner</ac:placeholder></p></td></tr><tr><td data-highlight-colour=\"#f4f5f7\"><p><strong>Version</strong></p></td><td><p><ac:placeholder>e.g., 2.3</ac:placeholder></p></td></tr><tr><td data-highlight-colour=\"#f4f5f7\"><p><strong>Version date</strong></p></td><td><p><ac:placeholder>Type // to add the date</ac:placeholder></p></td></tr><tr><td data-highlight-colour=\"#f4f5f7\"><p><strong>On this page</strong></p></td><td><ac:structured-macro ac:name=\"toc\" ac:schema-version=\"1\" data-layout=\"default\" ac:macro-id=\"6a8dd225-12fa-4ce5-82dc-9b4859c94be7\"><ac:parameter ac:name=\"minLevel\">2</ac:parameter><ac:parameter ac:name=\"type\">flat</ac:parameter><ac:parameter ac:name=\"separator\">pipe</ac:parameter></ac:structured-macro></td></tr></tbody></table><p /><h2><ac:emoticon ac:name=\"blue-star\" ac:emoji-shortname=\":classical_building:\" ac:emoji-id=\"1f3db\" ac:emoji-fallback=\"\uD83C\uDFDB\" /> Architecture</h2><p><ac:placeholder>Provide a high-level architectural diagram of your hosts and services so that your operations team can effectively troubleshoot an alert or outage.</ac:placeholder></p><p /><h2><ac:emoticon ac:name=\"blue-star\" ac:emoji-shortname=\":speech_balloon:\" ac:emoji-id=\"1f4ac\" ac:emoji-fallback=\"\uD83D\uDCAC\" /> Support contacts</h2><table data-layout=\"default\"><tbody><tr><th data-highlight-colour=\"#e6fcff\"><p><strong>Expertise level</strong></p></th><th data-highlight-colour=\"#e6fcff\"><p><strong>Team</strong></p></th><th data-highlight-colour=\"#e6fcff\"><p><strong>Team lead</strong></p></th><th data-highlight-colour=\"#e6fcff\"><p><strong>Contact info</strong></p></th></tr><tr><td><p>Level 1</p></td><td><p><ac:placeholder>@ Team members</ac:placeholder></p></td><td><p><ac:placeholder>@ Lead</ac:placeholder></p></td><td><p /></td></tr><tr><td><p>Level 2</p></td><td><p /></td><td><p /></td><td><p /></td></tr><tr><td><p>Level 3</p></td><td><p /></td><td><p /></td><td><p /></td></tr><tr><td><p /></td><td><p /></td><td><p /></td><td><p /></td></tr></tbody></table><p /><h2><ac:emoticon ac:name=\"blue-star\" ac:emoji-shortname=\":running_shirt_with_sash:\" ac:emoji-id=\"1f3bd\" ac:emoji-fallback=\"\uD83C\uDFBD\" /> Runs</h2><p><ac:placeholder>List the routine operations tasks this runbook is automating.</ac:placeholder></p><table data-layout=\"default\"><tbody><tr><th data-highlight-colour=\"#deebff\"><p><strong>Name</strong></p></th><th data-highlight-colour=\"#deebff\"><p><strong>State</strong></p></th><th data-highlight-colour=\"#deebff\"><p><strong>Start time</strong></p></th><th data-highlight-colour=\"#deebff\"><p><strong>Completed time</strong></p></th><th data-highlight-colour=\"#deebff\"><p><strong>Duration</strong></p></th></tr><tr><td><p><ac:placeholder>e.g., Database backup</ac:placeholder></p></td><td><p><ac:structured-macro ac:name=\"status\" ac:schema-version=\"1\" ac:macro-id=\"7ed934f0-1549-438d-a3e6-4014427b32a4\"><ac:parameter ac:name=\"title\">Success</ac:parameter><ac:parameter ac:name=\"colour\">Green</ac:parameter></ac:structured-macro> / <ac:structured-macro ac:name=\"status\" ac:schema-version=\"1\" ac:macro-id=\"5a58de88-ae20-4c3f-928e-d9320854ba65\"><ac:parameter ac:name=\"title\">Error</ac:parameter><ac:parameter ac:name=\"colour\">Red</ac:parameter></ac:structured-macro></p></td><td><p /></td><td><p /></td><td><p /></td></tr><tr><td><p /></td><td><p /></td><td><p /></td><td><p /></td><td><p /></td></tr><tr><td><p /></td><td><p /></td><td><p /></td><td><p /></td><td><p /></td></tr></tbody></table><p /><h2><ac:emoticon ac:name=\"blue-star\" ac:emoji-shortname=\":roller_coaster:\" ac:emoji-id=\"1f3a2\" ac:emoji-fallback=\"\uD83C\uDFA2\" /> Process</h2><p><ac:placeholder>List the procedures your team needs to follow to start, stop, monitor, and debug the system. Include procedures for every anticipated scenario.</ac:placeholder></p><table data-layout=\"wide\"><colgroup><col /><col style=\"width: 249.0px;\" /><col style=\"width: 94.0px;\" /><col style=\"width: 144.0px;\" /><col style=\"width: 148.0px;\" /><col style=\"width: 140.0px;\" /><col style=\"width: 143.0px;\" /></colgroup><tbody><tr><th class=\"numberingColumn\" /><th><p><strong>Step instructions</strong></p></th><th><p><strong>Enabled</strong></p></th><th><p><strong>Execution location</strong></p></th><th><p><strong>Run environments</strong></p></th><th><p><strong>Run conditions</strong></p></th><th><p><strong>Documentation</strong></p></th></tr><tr><td class=\"numberingColumn\">1</td><td><p /></td><td><p><ac:structured-macro ac:name=\"status\" ac:schema-version=\"1\" ac:macro-id=\"6cf3b173-4ba6-429f-b1ed-a23a7a6465dd\"><ac:parameter ac:name=\"title\">Yes</ac:parameter><ac:parameter ac:name=\"colour\">Green</ac:parameter></ac:structured-macro> / <ac:structured-macro ac:name=\"status\" ac:schema-version=\"1\" ac:macro-id=\"c2a55e5a-ed80-4301-8af8-9a2d81a71523\"><ac:parameter ac:name=\"title\">No</ac:parameter><ac:parameter ac:name=\"colour\">Red</ac:parameter></ac:structured-macro></p></td><td><p /></td><td><p /></td><td><p /></td><td><p><ac:placeholder>Add a link</ac:placeholder></p></td></tr><tr><td class=\"numberingColumn\">2</td><td><p /></td><td><p /></td><td><p /></td><td><p /></td><td><p /></td><td><p /></td></tr><tr><td class=\"numberingColumn\">3</td><td><p /></td><td><p /></td><td><p /></td><td><p /></td><td><p /></td><td><p /></td></tr></tbody></table>",
"representation":"storage",
"embeddedContent":[
]
}
},
"_links":{
"self":"https://COMPANY.atlassian.net/wiki/rest/api/template/e7bc19be-7c49-42a7-a414-f0bc4ce25007",
"base":"https://COMPANY.atlassian.net/wiki",
"context":"/wiki"
}
}

1 answer

1 accepted

0 votes
Answer accepted

Hi @Daniel Jacobs and welcome to the community,

There is an open suggestion about templates and REST API, which you can watch and vote here: https://jira.atlassian.com/browse/CONFCLOUD-11393

The URL you provided with a solution is for confluence server and I don't know if it will work on cloud.

And there is also another solution which you could try (again for server) https://community.atlassian.com/t5/Confluence-questions/How-can-i-create-a-new-page-from-a-users-template-using-rest-api/qaq-p/1059884 which could possibly work for cloud. I haven't test it though 

Thanks :)
the REST API call doesn't work for me, as i need a hyperlink.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events