Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Scaffolding Forms & Templates for Confluence Data Center
Results will update as you type.
  • Overview
  • Get started
  • Use cases
    • Basic
    • Intermediate
      • Create a page excerpt
      • Collect and display data in a structured way
      • Store data and use that data for calculations
      • Add labels to pages automatically
      • Group and retrieve data
      • Populate a list with Confluence pages
      • Retrieve data from a table
      • Store and retrieve attachments, pages, or users
      • Track a workflow status
      • Create a project details form
    • Integrations with other apps
  • Administrator guide
  • Developer Guide
  • Macro reference
  • Tutorials
  • Migrate from Scaffolding Data Center to Scaffolding Cloud
  • Release notes
  • Help and support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Populate a list with Confluence pages
    Updated Jun 18

    Populate a list with Confluence pages

    This article demonstrates how to dynamically populate a dropdown list with Confluence pages created as child pages of a specified parent page.

    One advantage is that the list automatically grows or shrinks based on the available content.

    Ingredients

    Apps

    Scaffolding

    Macros

    Content Options, List Data

    Guide

    1. Create a table as in the following image:

    1. Insert Date Data macros as shown in the Start Date and End Date columns.

    1. Set the Date Data macro names to startint and endint.

    2. Insert a List Data macro in the Tutorials Selected column.

    3. Set the List Data macro name to ScafTutorials and select the Allow Multiple checkbox.

    4. Insert a Content Options macro into the List Data macro.

    5. In the Insert ‘Content Options’ macro dialog, set the Space(s) and the Parent parameters.

    For this example, enter the current space, SCAF, and the Basic Tutorials page located in that space in Parent.

    1. Click Insert and publish the page.

    2. Click Edit Contents to enter your data.

    A list of Confluence pages appears in the dropdown menu in the Tutorials Selected column.

    You can press Ctrl to select multiple options.

    Notes

    For the Parent parameter:

    • If the parent/ancestor is in the same space, you can either enter just the page title or the space key followed by the page title.

    • If the parent/ancestor is in a different space, enter the space key followed by the page title. For example: <SPACE>:<Page Title>.

    You may experience performance issues with Content Options. Use sparingly.

    Result

     

    {"serverDuration": 14, "requestCorrelationId": "2e30d40b6c264cd4b694af1ebefbf28e"}