Ingesting Dynamically Generated Content from Confluence

Scrape content dynamically generated by Confluence Macros

Dynamically Generated Content

Confluence offers Macros or add-ons to enhance functionality and display additional content. This content is not ingested by the standard confluence connector. To ingest content generated by Macros you will need to use a Custom Script with a custom field mapping. The process is outlined below.

Script

Use the following script will be used to ingest all content from the XML Schema of your Confluence pages.

Configure the Data Source

  1. In the Aisera Admin UI navigate to Settings > Data Source.

  2. Select the Confluence Data Source you want to activate to enable ingestion of dynamically generated content.

  3. On the Data Source Details page, click the Pencil icon in the top right of the screen to edit the data source.

  4. Select Configurations.

  5. Modify the script above to replace the <INSTANCE ID> in line 9 with your Confluence instance ID.

  6. Insert the modified script into the Custom Script field.

  7. Add content.body.storage to the Additional Fields to Expand field.

  8. Click OK to save the new configurations.

  9. At the bottom of the Data Source Details page, click the New Field Mapping button.

  10. Select Body for the Field, and enter body.storage.value for the Confluence Field.

  11. Click OK to save the new field mapping.

Last updated

Was this helpful?