We're updating our terminology in Jira

'Issue' is changing to 'work item'. You might notice some inconsistencies while this big change takes place.

Insert the content tree macro

The content tree macro displays a dynamic, hierarchical list of content starting from a specified parent (root) item. It can act as a table of contents or a list of related topics. When viewing the content tree, your reader can click a link to view any individual piece of content. The content’s current position is highlighted in the content tree.

Use the content tree macro

To add the content tree macro:

  1. When editing, select from the toolbar

  2. Find the macro by name and select it

  3. Configure it as needed

You can also type / on the page to bring up the same list you'd see by selecting from the toolbar. Continue typing the name of the macro to filter the list.

To edit the content tree macro:

  1. Select the macro placeholder.

  2. Select the Edit icon to open the configuration panel.

  3. Configure the parameters. Your changes are saved as you go.

  4. Resume editing the page, and the panel closes.

You can also select the centered , medium-width , and full-width icons to adjust the width of some macros. Select the trashcan iconto remove the macro.

Parameters

Parameters are options that you can set to control what and how content from the macro appears on a page or live doc. 

If the parameter name used in Confluence Cloud storage format is different than the label used when inserting macros using the browser or the slash command, it will be listed below in brackets (example).

Parameter

Default

Description

Root content
(root

The overview page of the space

Specify the parent item for the content tree. The tree will include all nested children of the given parent item, plus their own nested items. The tree will not include the root parent itself.

Specify the title or a special value as follows:

  • Your content title — to specify a page or live doc name for the parent or root of the tree. The tree will include all children and grand-children of the specified root. The tree will not include the specified root item itself.

  • '@home' — will include all content under the overview page of the space (default).

  • '@self' — will include all pages and live doc nested under the current page or doc.

  • '@parent' — will include all pages and live docs under the parent of the current page or doc, and that current page or doc.

  • '@none' — will include all pages and live docs in the space, including orphaned items and the overview page.

Sort content by
(sort

position

Specify the order to display the content in the tree. This sort order is for display purposes only. It does not permanently re-arrange the order of tree content. The value may be one of the following:

  • bitwise — sort alphabetically, for example: title1, title10, title2.

  • creation — sort by date of creation.

  • modified — sort by order of date last modified.

  • natural — sort in 'natural' alphabetical order, for example: title1, title2, title10.

  • position — sort by the default Confluence sorting rules. If your content has been ordered manually, this sort will respect the defined order. Otherwise the content will be displayed in the 'natural' alphabetical order, such as: title1, title2, title10.

Include excerpts in content tree
(excerpt

false

Select if you want the content tree to show excerpts from each content item. The excerpts must be defined on each item by the Excerpt macro.

Reverse order
(reverse

false

Select to show the content in reverse (descending) natural order. Must be used in combination with the Sort content by parameter.

Include search box above content tree
(searchBox

false

Select if you want to include a search box above the content tree. The search box allows your readers to search within the content tree for the specified value.

Show expand/collapse links
(expandCollapseAll

false

Select if you want to display the 'expand all' and 'collapse all' links at the top of your content tree. Your readers can click these links to open or close all branches of the tree at once.

Available values in wikimarkup and storage format:

  • true – Show the 'expand all' and 'collapse all' options.

  • false – Do not show the options.

Tree depth
(startDepth

1

Enter any number greater than 0 to set how many levels of children the tree should show when it opens for the first time.

Still need help?

The Atlassian Community is here for you.