Using JIRA Server 7.3.2
In my release notes, I'd like the current date and time at the bottom. E.g. just to echo out "2017-09-28T12:45" for example.
Is that possible using the Velocity templates? I know how to edit the template and all - so I'm just after the syntax / method on how to obtain the current date and time. Preferred also if there is an UTC variant?
I actually tried this already - but it just renders like this:
Release notes generated $dateUtil.getCurrentDate()
So it doesn't "execute" the java call. I guess that means dateUtil is not in the current VelocityContext.
Docs are not that good as to what context classes I have access to :(
BTW: I've also been trying the docs here. There it is called "dateutils". I've also tried the link to JIRA 3.6.x and later, but that points to Email context. very confusing. In any case - whatever I try, it is just rendered as text.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot