Hi,
Im trying to use If logic on a custom field.
{{#if(issue.customfield_18021.isEmpty)}}, issue.created.diff(now).businessDays , issue.created.diff(issue.customfield_18021).businessDays {{/}}
The goal is if customfield_18021 is empty date diff will use now and if there is a date (really not null) in customfield_18021 it does a datediff off of that.
Now this does work if i use if else blocks in jira automation but im trying to do reduce component usage by doing it in the varible.
When I run the code I get the correct answer from the if/else components but the above inline smart value returns null.
@Bill Sheboy tagging you incase you have insight (its def been appreciated in the past)