Script Fragments

ScriptRunner allows you to customise the UI of Confluence by adding buttons or displaying web content on a page.

The different types of Script Fragments available are:

Use script fragments

The HTML, CSS and Javascript has to be hosted somewhere that Confluence can access. We recommend CodePen for the hosting. It’s also important to note that the hosting must serve up the matching content-type header for each file.

  1. From the main Confluence left side menu, select Settings.
    Table View
  2. Select Script Fragments, under ScriptRunner.
  3. Click on Create Script Fragment

  4. Select the Space where you want the fragment to appear. 

  5. Select your Fragment Type, either WebItem or WebPanel

    Follow one of the links to see how to work with each script fragment type.

On this page