Work with Templates
Learn about using HAPI to complete tasks related to templates.
You can fetch blueprint templates inside your Confluence instance with a script like this:
def template = Templates.getBlueprintTemplates();
template.each(t ->{
logger.info(t.toString())
logger.info(t.name)
})In the Log, you can see that blueprint templates were imported. Here is an example:
Tip: Fetching blueprint templates is also available as an Example Script!
The blueprint template properties you can work with are:
templateIdnamedescriptiontemplateTypespace
Tip: For more information about blueprint templates, check out the Atlassian documentation.