Forums

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

Automation Smart Value check if {{now}} between 9:00 am to 4:30 pm PST update a custom filed to True

David Lam
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 5, 2024

I'm working on an automation task and need to set a condition to update a custom field to true if the current time is between 9:00 AM and 4:30 PM PST. However, I've encountered an issue: when the current time is 1:00 PM, the condition returns false.

Here is my setup for the automation:

{{now.convertToTimeZone("America/Los_Angeles").shortTime}}

Screenshot 2024-08-05 102247.jpg

Thanks

1 answer

5 votes
Samuel Gatica _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2024

Hi @David Lam 

Welcome to the community!

Try working with 24H format instead.

{{now.convertToTimeZone("America/Los_Angeles").format("HH")}}

Then you can use is greater than 9 and is less than 17.

 

Best regards

Sam

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events