Confluence Cloud Developer

Confluence Cloud Developer

Rate this page:

About Connect modules for Confluence

Connect modules allow Connect apps to extend the Confluence user interface, create custom Macros or content, handle event listening (webhooks), and even run scripts or other code. If you're not familiar with Connect apps, learn how Connect works first.

Add modules to your Connect app

To use a module in your app, declare the module in your App descriptor file under modules, including any required properties. The properties you include control the customization options for your module.

For example, this module adds content to the byline of your Confluence pages, just below the page title.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "modules": {
    "contentBylineItems": [
      {
        "url": "/my-byline-item",
        "context": "addon",
        "target": {
          "type": "inlinedialog"
        },
        "tooltip": {
          "value": "Item Tooltip"
        },
        "name": {
          "value": "Item Text"
        },
        "key": "byline-item",
      }
    ]
  }
}

For more control over when and where some modules are displayed, you can use the conditions property. For example, you may want to display a certain tooltip only if the condition user_is_admin is true. Learn more about Conditions.

Some modules can be registered dynamically at runtime using the REST API, rather than via the app descriptor. See Dynamic modules for more details.

Learn more about how modules work by reading our Confluence modules guide or dive into each module's properties by selecting a module on the left.

Rate this page: