https://jira.atlassian.com/browse/JRACLOUD-75659
As per the above link, the issue is resolved but I'm still not able to use the custom smart variable as a function parameter.
e.g.
1. Create a custom variable in automation
lastcreated = {{attachment.created.max}}
2. logging {{now.diff(lastcreated)}} prints nothing.
How to resolve the issue?