Forums

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

Timezone for JIRA custom field

Kinjal Patel May 14, 2020

Hello,

I need some help with the timezone in Email notification for my JIRA Automation email feature. I have a DateTime field name called "Next Update". I have below test in a Sent email feature

 

{{Issue.Next Update.format("MM/dd/yyyy hh:ss")}}

 

The format seems ok in an email but the Time section is exactly 4Hr ahead of NY time. I checked my personal setting and its "America/New York".

 

Not sure where I may need this change in order to get correct time value based my current timezone? 

 

1 answer

0 votes
Tyler Lasater
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2021

I found this to work - just replace your customfield ID in the x's.  You may also want to change the shortTime as well if you desire a different format.  This will output 08/03/2021 1:00 PM

{{issue.customfield_xxxxx.format("MM/dd/yyyy")}} {{issue.customfield_xxxxx.convertToTimeZone("America/New York").shortTime}}

You can find more documentation at:

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

Suggest an answer

Log in or Sign up to answer