Good day everyone!
Found out that the https://confluence.xpand-addons.com/display/public/XPORTER/Javascript :
doesn't work on the Word templates. Can anyone help to create the correct Javascript for this case? Unfortunately I can't use the standart date-format (MMM) because I need the Rus names of months using the English JIRA version
Thanks in advance!
ok, the solution was found:
%{var months = new Array('января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'); var dateParts = '${CreatedTime}'.split('-'); var month = dateParts[1]; var day = dateParts[0] ; var year = dateParts[2].split(' ')[0]; '«' + day + '» ' + months[parseInt(month) - 1] + ' ' + year + ' г.';}
it would be great to correct the mistake in the documentation.
Have a nice day!
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.