Formatting DateTime doesn't seem to work on JETI Cloud

Pujan Ziaie
Contributor
October 23, 2017

Hello,

I'm trying to show a simple Date of a DateTime custom field value. in JETI email template on JIRA Cloud.

Here is my code in the email template:

#set($formatter = $!jetiFieldFormatter.getJiraDateTimeFormatter("dd-MM-yyyy")) 

Date1: $!jetiFieldFormatter.formatSafely($formatter,$!issue.getCustomFieldValueAsObject("customfield_10115"))

Date2: $!jetiFieldFormatter.formatSafely($formatter,$!jetiFieldRenderer.renderCustomFieldAsObject($issue, 'customfield_10115'))

 

Both of the Dates are empty (nothing is shown), although #renderCustomField($!issue, 'customfield_10115') returns the right value (in the full format).

Am I missing something or doing something wrong or is this a bug?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 21, 2018

Hi! 

 

Have you fixed it? Just curious. 

 

Cheers,

Gonchik Tsymzhitov

TAGS
AUG Leaders

Atlassian Community Events