Forums

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

Convert date/time field to date field with especific TimeZone

Angel
Contributor
May 14, 2025

Hi

 

We need to register in issue the endDate of sprint in date field, Im using  a automation rule with webhook value "{{webhookData.sprint.endDate}}" but it save with UTC format, How I would save the webook value with my time zone in my date field? I tried with math expresion "{{webhookData.sprint.endDate.minusHours(6)}}" and with convert function too but didnt work, the value that returns is empty.

We are in Jira Software-Cloud

Thanks

Best regards

 

 

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2025

Hi @Angel 

The data from the webhookData is likely text, and must be converted with toDate before using with date / time functions:

https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/#Converting-text-to-dates

 

And after conversion, I suggest using the built-in conversion functions for time zones: 

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

 

Kind regards,
Bill

Angel
Contributor
May 15, 2025

Thanks @Bill Sheboy 

Suggest an answer

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

Atlassian Community Events