I'm trying to set up a custom automation in Confluence, triggered by a button on the page. I've created the automation rule, and it shows up in the list of rules - scope is the space, accessible to all admins.
When I create a Smart Button on a page in that space, I'm offered a list of templates that does not seem to have any relationship with other templates under Automation and, specifically, does not list my custom automation rule.
How do I create a custom automation rule and attach it to the button?