Difference between the current day and the earliest sub-task due date
Return the difference in days between the current day and the earliest due date from the sub-tasks of the current work item.
Configuration
Create a Custom smart number field and use the General parsing mode.
Expression
%{max(fieldValue({issue.dueDate},subtasks())) != null ? ceil((min(filterByValue(
fieldValue({issue.dueDate},subtasks()),!=, null )) - {system.currentDateTime}) /
DAY) : null}
Format
Default
Used parser functions
The links lead to the JWTC documentation because the parser functions are shared functionalities.