Hello,
I am new to Jira automation and have a problem to make an automation that update a task due date if the sub-task created is a furthest date, here is a screenshot of my automation ( I work on Jira version 9.12.10

And here is the audit log : 
my current "Edit issue" is : "{{triggerIssue.customfield_12602}}" The problem is that this does only update the date based on the last subtask created. I tried with this :
{{lookupIssues.max(issue.customfield_12602)}} but it makes the due date field disappear. I am quite lost at what I should try next. Can someone help me please ?