Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Adjust time zone from custom field in an email automation

Edited
Alex S I'm New Here Jan 12, 2022

Hi all,

Currently using Jira SM, and we have an automation setup to send an email to a team of people with ticket details including the custom field for a time/date ETR (separate from the SLA). 

Here is what I have for the smart value: {{issue.customfield_10334.shortDateTime}}'

Our team is in EST and the time entered into the ticket is the same, but Jira default is UTC. When the email shoots off, the date/time converts to UTC. How can I adjust this smart value to have the email reflect EST?

Thanks

 

1 answer

1 accepted

3 votes
Answer accepted

Hello @Alex S ,

Thanks for reaching out and as a reference point to the smart values below I recommend checking out the Documentation for "Jira smart values - date and time".

Using the smartvalue {{[date].convertToTimeZone([timezone])}} should do the trick for setting an eastern timezone (ETC) and then setting the short date time format as the follow up action, noting:

{{[date].convertToTimeZone([timezone])}}

Takes a given time, and converts it to the time in the given time zone. You can find valid inputs for timezones here (see Canonical ID column).

Use the following smart value for your use case:

{{issue.customfield_10334.convertToTimeZone("America/New_York").shortDateTime}}

Regards,
Earl

Alex S I'm New Here Jan 13, 2022

That worked thanks! I tried to use that smart value, but I guess I wasn't stringing it together correctly.

Like Earl McCutcheon likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

743 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you