We use a script workflow function from Script Runner to send a custom mail which is working as expected. In the mail body we want to display the due Date with the right formatting. When using the preview button, the date is displayed but in the mail the field is empty.
Can you help me find what is wrong? I tried the following to achieve the expected result:
- $issue.dueDate
- Working in Preview = 2015-12-08 00:00:00.0
- Working in Mail = 2015-12-08 00:00:00.0
${issue.dueDate.format('MM.dd.yyyy')}
Working in Preview = 12.08.2015
Not Working in actual Mail = Field is empty