Hi there! Is the following possible with smart button and if yes, how:
Can we automatically in created "Template A" live document have another smart button, that will create a "Template B" under the "Template A" document? As practically when Template B is created, we can't set it under Template A automatically, as it doesn't exist yet (?).
I would highly appreciate any support on the idea, thank you very much
You can definitely do what you're asking, but you'll need to hybridize your solution. You are set on making a smart button to create Template A from Page A when a smart button is selected.
Where you'll have to break away from smart button actions is to create and move Template B under Template A once Template A is filled out. This is doable quite simply with automation and conditions. What I would do is:
- put a Page Properties Macro at the top of Template A so you can transform your fields into structured data that Confluence automations can read;
- in the macro, create a table with required fields filled out by the user (I saw "filled out" in your question, so I tried to meet it. If this is off from what you want, let me know!)
- smart button inside Template A needs to be configured to trigger Confluence Automation rule (called "Nested Template Creator")
Then I would make an automation with conditions to create Template B and move it under Template A:
- the trigger: Smart link button in Template A when clicked creates Template B, if conditions are met:
- conditions: if mandatory fields are completed in your macro, and smart button is clicked in Template A, Template B is created
- Action: Creates Template B if smart button in Template A page is clicked when mandatory fields in macros are filled out and nests it under Template A.
By using that Confluence Automation rule ("Nested Template Creator"), I think you can create and nest Template B under Template A. I am a watcher on this thread now, so if you run into any issues, please just let me know in this message. I hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.