Forums

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

Error rendering smart-values: Failed to get value for issue.created.diff(issue.due date).days.abs.

Ryan Hamilton
Contributor
October 16, 2023

Hello,

I'm using the smart value date "diff" function for dates in an automation.

I'm using the smart value as follows {{issue.created.diff(issue.due date).days.abs.}}, I also tried {{issue.created.diff(issue.duedate).days.abs.}} and I'm getting the same error message.

  • Error rendering smart-values when executing this rule: Failed to get value for issue.created.diff(issue.due date).days.abs.

What am I doing wrong?

1 answer

1 accepted

2 votes
Answer accepted
Tim Kopperud
Community Champion
October 16, 2023

Hi @Ryan Hamilton

You have an extra "." at the end in your expressions. Try

{{issue.created.diff(issue.due date).days.abs}}

TimK.

Ryan Hamilton
Contributor
October 16, 2023

OMG, I had been looking at the formula for hours and couldn't find the issue.

Thanks, Tim, It worked.

Like Tim Kopperud likes this

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