Format date in email from automation

Zaki Ögmundsson March 31, 2022

Hi everyone,

I'm trying to customize the email notification for an automation I've created.
I'm trying to display the date time of a custom field which is in datetime format but the date that is displayed in the email is not in the same format as in the issue.

The custom field displays the date in the following format:

image.png

The settings for the automation look like this:

image.png

The date is displayed in the email as follows:

image.png

 

Does anyone know how to format the date in the settings for the automation?

 

Thanks,

Zaki

 

1 answer

1 accepted

3 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

Hi @Zaki Ögmundsson  Welcome to Atlassian Community!

Currently it's showing in JiraDateTime format. You have to set format of Date field :- 

try this :- {{issue.customfield_10133.shortDateTime}} 

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

Thanks

V.Y

Zaki Ögmundsson March 31, 2022

Thank you @Vikrant Yadav !
I managed to find the format I was looking for by going through the documentation you linked to in your answer!

Thanks,

Zaki

Like Vikrant Yadav likes this
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

Cool , Glad to hear it helps you! 

Like Zaki Ögmundsson likes this

Suggest an answer

Log in or Sign up to answer