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?
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Apply agile practices
Transform how you manage your work with agile practices, including kanban and scrum frameworks.
Learning Path
Configure agile boards for Jira projects
Plan, prioritize, and estimate upcoming work by creating and configuring agile Jira boards for company-managed projects.
Learning Path
Registered Scrum Basics™
Manage work more effectively by learning scrum basics from a global leader in agile transformation and training—and get credentialed by Scrum Inc.®