Forums

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

There is a need to add a certain number of hours to the current date

There is a need to add a certain number of hours to the current date, the project automation uses the expression {{now.plusHours (4)}} does not work and the expression {{now.plusDays (1)}} works fine, tell me if there is a solution.

1 answer

1 vote
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.
July 30, 2020

Hi sergeev.viacheslav@telestarcom.ru 

I believe you have an extra spaced before the parenthesis.  This worked for me:

{{now.plusHours(2)}}

By the way, I found more date/time functions for smart values in the JSD documentation:

https://support.atlassian.com/jira-service-desk-cloud/docs/smart-values-date-and-time-functions/

 

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events