Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-70737

Exclude Headings feature on Table of Contents macro is not working properly

XMLWordPrintable

      Issue Summary

      The TOC macro offers the ability to exclude headings from the report. According to the macro's documentation:

      Filter headings to exclude according to specific criteria. You can use wildcard characters.
      If the headings you want to exclude are Overview and Summary, enter Overview|Summary in this field.

      However, this filter is not working properly - It's not looking only for exact matches. For example, using Test to exclude this heading, would also exclude any other Heading on the page that has the word Test on it, for example "Test results".

      Although the macro preview works properly (it excludes only exact matches) while editing the page, once you publish it, note that the TOC is excluding more Headings that it was expected.

      Steps to Reproduce

      1. Create a page on Confluence, and add these Headings (Test, Some Tests, Test Results, test)
      2. Add the TOC macro to the page.
      3. On the Exclude Headings field, fill Test.
      4. Save the macro.
      5. Publish the page.

      Expected Results

      The macro should only exclude Test heading from the report, as shown on its preview:

      Actual Results

      After publishing the page, note that the TOC is also excluding Tests and Some Tests:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Notes

      Note that the field is case sensitive, so the test heading was kept.

        1. image-2020-09-02-21-20-16-301.png
          48 kB
          Vitor A
        2. image-2020-09-02-21-21-19-406.png
          22 kB
          Vitor A

              Unassigned Unassigned
              edc026a7b429 Vitor A (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: