Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,555
Community Members
 
Community Events
168
Community Groups

Time to SLA Notifier email content - Change date format

Rob B Rising Star Sep 24, 2018

Description

Hi,
I would like to change the date format in the 'email content' of the SLA notifier. I currently have the below code but it appears as '2018-09-22 13:55:00.0'.
Can it be set to normal format?

Log On : $

{issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11201'))}


Log Off : $

{issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11202'))}


Network Engineer : $

{issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11302')).getDisplayName()}

 

1 answer

1 accepted

1 vote
Answer accepted
Tuncay Senturk Community Leader Apr 24, 2019

Hello @Robert Bromley 

Sorry for the late response

You can change date format either using $dateTimeFormatter or $dateTool

Details can be found here

Tuncay Senturk Community Leader Jul 04, 2019

Hello @Robert Bromley 

Did it fix your problem?

Rob B Rising Star Jul 05, 2019

Hi Tuncay,
Yes sorry it worked, i will accept your answer now

$dateTimeFormatter.format(${issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11109'))})
Tuncay Senturk Community Leader Jul 05, 2019

I'm glad to hear that it worked :)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events