We are using Page Tree macro in our Space to display the TOC. We want to use the @self in the Root Page parameter, but it does not seem to recognize the @self as valid input.
We also tried with using page name in the Root Page parameter. Although, it displays the expected pages in the TOC in Preview section, but, when we save the page, the TOC is not getting generated.
Referred to the following help link:
https://confluence.atlassian.com/doc/page-tree-macro-163414255.html
Please help.
Attached are a few screenshots.



