I want to create a custom confluence plugin that will be able to accept an input string and if the page on which this macro is enabled has a label matching the input string, then I should be able to list this page. Also, any children pages of this page with such label should also get listed. Is this possible using a custom plugin? If yes, could you please direct me to the relevant documentation? I searched quite a bit and couldn't find anything.