In Confluence, you can put in variables as part of a page template. You can then create a new document using that template where you get an opportunity to add a value for the variables added in the template.
What I want to do is emulate the same functionality from within a Scriptrunner Event Listener groovy script. Is this possible? Currently I am able to create a new page using a specific template. However, I haven't found a way to set page template variables when creating a page.