getCustomFielsValue returns wrong year

brainbits GmbH October 27, 2015

We use the "Send a custom email" function within a workflow transition to send an email that contains a date-value from a custom field. Given that the field contains a 2015-date later than the 26. december the function returns a 2016-date.

image2015-10-28 8:52:8.png

...results in...

image2015-10-28 8:54:59.png

 

The date is written by using the following function:

<< issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("Beginn")).format("dd.MM.Y") %>

 

Is there a trick or is this a bug? smile

1 answer

0 votes
Thanos Batagiannis _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 30, 2015

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events