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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.