Take the date on my word document

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

176 views 18 7
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you