Xporter for JIRA allows rendering test based on Javascript. The notation is:
Examples:
%{( new Date()).getDate() + "/" + (( new Date()).getMonth()+ 1 ) + "/" + ( new Date()).getFullYear()}
%{var dateTime = '${CreatedTime}' .split( ' ' ); var date = dateTime[ 0 ]; var time = dateTime[ 1 ]; var dateParts = date.split( '-' );
var timeParts = time.split( ':' ); dateParts[ 2 ] + '-' + dateParts[ 1 ] + '-' + dateParts[ 0 ] + ' ' + timeParts[ 0 ] + ':' + timeParts[ 1 ]}
%{ '${CreatedTime}' .substring( 0 , 10 )}
%{var months = new Array( 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' ); var dateParts
= '${CreatedTime}' .split( '-' ); var month = dateParts[ 1 ]; var year = dateParts[ 0 ] ; var day = dateParts[ 2 ].split( ' ' )[ 0 ];
months[Number(month) - 1 ] + ' ' + day + ', ' + year;}
%{( '${Focus}' .length > 0 ) ? 'Focus: ${Focus}' : 'Focus not Available' }