Use case

Return the lowest date from a Date Picker custom field in the linked issues of the current issue.

Expression

Create and configure a Smart field using this expression in Jira expression parsing mode:


let minDate = issue?.links.map(link => link.linkedIssue.customfield_nnnnn).filter( d => d != null);
minDate.length > 0 ? new CalendarDate(minDate.reduce((a, b) => a < b ? a : b )).toString() : ""

Please, replace nnnnn with the ID of a Date Picker custom field.