Use case
Return a list with the previous due dates of the current issue in descending order.
Expression
Create and configure a Smart field using this expression in Jira expression mode:
issue.changelogs.filter(changelog => changelog.items.some(item => item.fieldId == 'duedate' && item.from != null)). map(changelog => {duedateentry: changelog.items.filter(item => item.fieldId == 'duedate' )}). map(e => new CalendarDate(e.duedateentry[0].from).toString()).join(", ")