The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Automation Smart Value check if {{now}} between 9:00 am to 4:30 pm PST update a custom filed to True

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

5 votes
Samuel Gatica _ServiceRocket_
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 Champions.
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events