You can no longer publish Connect apps on the Atlassian Marketplace. All new extensibility features will be delivered only on Forge.
Refer to this blog post for our timeline to end Connect support.
Have an existing Connect app? You can incrementally migrate it to Forge.
Blueprints allow your connect add on to provide content creation templates.
1 2{ "modules": { "blueprints": [ { "template": { "url": "/blueprints/blueprint.xml", "blueprintContext": { "url": "/blueprints/context" } }, "createResult": "edit", "description": { "value": "This is a description." }, "icon": { "width": 48, "height": 48, "url": "/my-blueprint-icon.png" }, "name": { "value": "Simple Remote Blueprint" }, "key": "remote-blueprint" } ] } }
key
Type | string |
Max length |
100 |
Required |
Yes |
Pattern |
^[a-zA-Z0-9-]+$ |
Description |
A key to identify this module. This key must be unique relative to the add on, with the exception of Confluence macros: Their keys need to be globally unique. Keys must only contain alphanumeric characters and dashes. The key is used to generate the url to your add-on's module. The url is generated as a combination of your add-on key and module key. For example, an add-on which looks like: { "key": "my-addon", "modules": { "configurePage": { "key": "configure-me", } } }
Will have a configuration page module with a URL of |
name
Type | i18n Property |
Required |
Yes |
Description |
A human readable name. Represents a string that can be resolved via a localization properties file. You can use the same Example
|
value |
|
i18n
Type | string |
Max length |
300 |
Description |
The localization key for the human-readable value. Translations for the keys are defined at the top level of the add-on descriptor. |
template
Type | Blueprint template |
Required |
Yes |
Description |
Defines where the blueprint template is located and the context for variable substitution. Defines where the blueprint template is located and the context for variable substitution.
|
url |
|
blueprintContext
Type | Blueprint template context |
Description |
Defines the add-on server endpoint that provides the JSON objects used for substituting variables in the blueprint template. For more information on defining variables in blueprint templates, check out the examples in Blueprint Template Context. Defines the context of the blueprint template.
A blueprint template is static - the same template will produce the same Confluence page. To produce Confluence pages dynamically (to create a different page for a different user), the template needs to use variable substitution to produce the dynamic parts. Variable substitution requires the add-on to provide data for substitution. Collectively, this data is called the context for substitution.
The context is made up of a list of objects which are retrieved from the context url specified by the blueprint
context Substituting dynamic variables in a blueprint
Let's say we have a blueprint template module
And an add-on server resource
During blueprint page creation, Confluence sends a POST request to The final, variable substituted, storage format will look like this:
This is then used as the Confluence page to be saved to the database and displayed to the user according to the
An error message appears in the Content Create Dialog if Confluence has any problems accessing the blueprint
template or context URL (for example if your add-on server failed to respond in 10 seconds or the JSON
returned is invalid). A detailed error and/or stacktrace may be accessible by Atlassian support, but the end user will see an
error like the one shown here:
Backwards compatibility of the
A blueprint template containing variables may change as the add-on evolves over time. However, because end users
can customize blueprint templates, it's possible for the customized version of the template to differ from
the version in the add-on. This difference won't cause an error as long as the variables used in the template are
still being returned as part of the context url.
|
createResult
Type | string |
Defaults to |
edit |
Allowed values |
|
Description |
Defines the screen to go to when creating this type of Blueprint. A value of |
description
Type | i18n Property |
Description |
Defines a short description for this Blueprint, to be shown in the Create Content dialog. Represents a string that can be resolved via a localization properties file. You can use the same Example
|
value |
|
i18n
Type | string |
Max length |
300 |
Description |
The localization key for the human-readable value. Translations for the keys are defined at the top level of the add-on descriptor. |
icon
Type | Icon |
Description |
Defines an icon for this Blueprint, to be shown in the Create Content dialog. Defines an icon to display. Example
|
url |
| ||||||||
height |
| ||||||||
width |
|
Rate this page: