I need to take the todays date on my issue export in word document. So i add the coding in .vm file like this "$outlookdate.formatDMY($currentDate)" . So the date is coming like this ex: 22/Nov/12. But ineed the format of word 22/11/2012 in this format. What is the chage do i need to do in my codings...... Plz some one help me
The documentation for outlookdate with it's format methods is here:
http://docs.atlassian.com/jira/latest/com/atlassian/jira/web/util/OutlookDate.html
outlookdate is deprectaed though so it would be better to use DateTimeFormatter
http://docs.atlassian.com/jira/latest/com/atlassian/jira/datetime/DateTimeFormatter.html
although I would not be sure how to get that into your velocity context, you may have to modify Java code.
As an alternative you could use a plugin specifically designed for exporting JIRA data to word format, such as Intelligent Reports. This lets you design your template in Word and then simply choose what data/dates/formats etc to place in your word document from a series of drop down menus. It is a lot easier than messing about with the Velocity templates.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.