Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Release Email - Date Format Issues

Antonio Smith October 1, 2024

Hello

This is a minor issue bug it's bugging me as everything else is 'perfect'

I have a release automation in. place that emails us when we release a version. 

The date is formatted as 2024-09-27T00:00:00.0+0000 in the email received

Code:

Screenshot 2024-10-01 at 20.54.30.png

 

Result

Screenshot 2024-10-01 at 20.52.16.png

 

 



Can we format this further so the time is stripped or formatted correctly? I tried other options but didn't seem to produce any result in email











2024-09-27T00:00:00.0+0000

2 answers

3 votes
Dan Breyen
Community Champion
October 1, 2024

Hi @Antonio Smith I found this Knowledge Article from Atlassian that should give you all sorts of options for formatting the date.

Hope that helps.

Antonio Smith October 11, 2024

I read that before posting and was confused how I would apply to release

{{version.releaseDate.shortDate}} returns blank.

0 votes
John Funk
Community Champion
October 1, 2024

Hi Antonio,

Try adding .shortDate or .longDate to your smart value.  For example: {{issue.releaseDate.shortDate}}

Antonio Smith October 11, 2024

sorry for the delay, I tried this before and it was blank.

I thought {{version.releaseDate.shortDate}} would do it but that was also blank

John Funk
Community Champion
October 11, 2024

Try: {{issue.fixVersions.releaseDate.shortDate}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events