Forums

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

Date/time smart values - If time is currently before 2PM

Darren Sheffield
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!
June 15, 2021

Hi community, 

I am looking to create an Automation for JIRA where a rule will capture this scenario:

If time of day is before 2PMCentral, assign to user 1

If time of day is after 2PMCentral, assign to user 2

 

I've fully built the automation but am not sure on the smart values needed to make this work. For example, this doesn't seem to produce a good result:

{{now.isAfter({{now.withHour(14).withMinute(0)}})}}

 

Any suggestions?

1 answer

1 vote
John Funk
Community Champion
June 15, 2021

Hi Darren,

You might try using startOfDay

{{now.isAfter({{startOfDay(6)})}}

Suggest an answer

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

Atlassian Community Events