Create Page for ScriptRunner Confluence with template vars Edited

Hi everyone,

we are using the old "create page" plugin. Now it's updated by ScriptRunner.
In past, we had one case:

* A button where a meeting note with a label will be created

But every time, there was something missing; like no date in title or so on. I see, with Scriptrunner, I have a lot of possibilities. My question: Can I predefine template variables in the Scriptrunner addon "Create page"?

What I mean: Now I can create a page based on meeting notes template, BUT the attendees list is not already set with my name and the Date area is blank too. What to setup that there is already my usernamen and the current date? Can I write a script for this like explained here: http://confluence-addons.connect.adaptavist.com/create-page/latest/macro-customisation.html ?

Or is this just for variables in the dialog and not for the template?

Best,
Robin

1 answer

Hi Robin,

The example that you refer to will only affect the variables used inside the create page macro. You are able to add your own variables but they will not be applied to the template.

As for using variables on templates you can have a look at this thread for some ideas. 

https://community.atlassian.com/t5/Confluence-questions/How-do-you-add-template-variables-as-macro-parameters-or-in/qaq-p/116958

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

366 views 5 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you