Days until due date
Return the number of days remaining until the due date.
Configuration
Create a smart number field and use the General parsing mode.
Expression
%{{issue.dueDate} != null ? floor(max({issue.dueDate} - datePart(
{system.currentDateTime}, RUN_AS_LOCAL), 0)/ DAY) : null
Format
Default
Used parser functions
The links lead to the JWTC documentation because the parser functions are shared functionalities.