...
Code Block |
---|
#set($longVal = $currentMillis.longValue() + 86400000 )
$dateFormatter.withStyle($dateTimeStyle.DATE).format($jemhDateUtils.createDate($longVal)) |
Example Output:
29/Mar/15
When using the above, it operates in the context of the 'current' user, typically the sender of a mail (for incoming custom field defaults). You can default the locale of the date by using withDefaultLocale() from https://docs.atlassian.com/DAC/javadoc/jira/reference/com/atlassian/jira/datetime/DateTimeFormatter.html:
Code Block |
---|
#set($longVal = $currentMillis.longValue() + 86400000 )
#set($dateObj = $jemhDateUtils.createDate($longVal) )
$dateFormatter.withDefaultLocale().withStyle($dateTimeStyle.DATE).format($dateObj) |
JEMHDateUtils
Status |
---|
colour | Red |
---|
title | since 3.2.6 |
---|
|
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | JEMH |
---|
showSpace | false |
---|
sort | modified |
---|
typeshowSpace | pagefalse |
---|
reverse | true | labels |
---|
event listener jemh issue notificationtype | page | cql | label in ( "velocity" , "template" , "macro" , "date" ) and space = "JEMH" |
---|
labels | event listener jemh issue notification |
---|
|