Date tool in velocity for Plugin

Ed Sattar July 29, 2013

I am writing servlet plugin in JIRA . I need to format date in velocity.

How can i achieve this?

I have tried $dateTool but didn't succeed.

2 answers

0 votes
Andrew
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2015

Updated link for Julian's answer:

https://answers.atlassian.com/questions/31681397

0 votes
Julian Riedinger _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2013
Have you put the object of the class DateTool in the vm-context? With this possibillity you can check it out: https://developer.atlassian.com/pages/viewpage.action?pageId=4227172
AnaG January 28, 2014

Is it correct to use TemplateRenderer to render templates? Will it include standard velocity variables into the context?

Suggest an answer

Log in or Sign up to answer