Take the date on my word document

azfa November 21, 2012

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

1 answer

0 votes
mwarton
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.
January 21, 2013

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events