I finished simple, intermediate and advanced blueprint tutorials of the Atlassian https://developer.atlassian.com/server/confluence/tutorials-and-guides/.
Currently, I have a soy file and a js file for Blueprint wizard page; a Java file as context provider and an xml file for template.
I added the current date to the title easily. I also want to insert current date and the current user (page creator) to the page before sending user to edit. (For example; default meeting notes blueprint). However I couldn’t find how to set these values in template.
In xml template, the current date should be as following format:
So, I cannot add something like “at:var” for datetime value. So, I cannot change it from the context provider class.
Nearly same issue with the page creator. I should add the user as following format:
However, I couldn’t set the userkey through Java and also I couldn’t get the page creator value.
- How can I add the current date to the template page?
- How can I add the user mention to the template page?
- How can I get the creator of the page?
Thanks already for all your interests.
Have a nice day!