NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      When you add a macro to a template, some of them (like TOC, Page Tree Search or Page Tree) fail to preview (but they work completely fine when the template is used afterwards) because they expect a space to exist. This is true even when creating a space template, which is bad.

      The error thrown when creating a TOC macro on a template is:

      Error rendering macro 'toc' : null
      

            [CONFSERVER-27660] Macros doesn't render on template preview

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2902936 ] New: CONFSERVER Bug Workflow v4 [ 2997599 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2800734 ] New: JAC Bug Workflow v3 [ 2902936 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2731217 ] New: JAC Bug Workflow v2 [ 2800734 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2397901 ] New: JAC Bug Workflow [ 2731217 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2295585 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2397901 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231525 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2295585 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2190669 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231525 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1924950 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2190669 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1727246 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1924950 ]
            jonah (Inactive) made changes -
            Description Original: When you add a macro to a template, some of them (like TOC, Page Tree Search or Page Tree) fail to preview (but they work completely fine when the template is used afterwards) because they expect a space to exist. This is true even when creating a space template, which is bad.

            The error thrown when creating a TOC macro on a template is:

            {noformat}
            Error rendering macro 'toc' : null
            {noformat}
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-27660].
              {panel}

            When you add a macro to a template, some of them (like TOC, Page Tree Search or Page Tree) fail to preview (but they work completely fine when the template is used afterwards) because they expect a space to exist. This is true even when creating a space template, which is bad.

            The error thrown when creating a TOC macro on a template is:

            {noformat}
            Error rendering macro 'toc' : null
            {noformat}

              sday@atlassian.com Samuel Day (Inactive)
              egarcia Angel Eduardo Garcia Hernandez (Inactive)
              Affected customers:
              15 This affects my team
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: