Forums

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

Smart value returns negative number

Dillon Weyer
Contributor
March 17, 2023

Is anyone able to tell me why the following results in a negative number? This comes from:

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

{{now.diff(issue.created).days}}

 

1 answer

1 accepted

1 vote
Answer accepted
Dillon Weyer
Contributor
March 17, 2023

just found the answer:

{{now.diff(issue.Created).days.abs}}

 

Answer from post: https://community.atlassian.com/t5/Jira-questions/Convert-negative-number-into-positive/qaq-p/2243000

Suggest an answer

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

Atlassian Community Events