scriptrunner script for below requirement
The last due date of the stories should be the due date of the Epic. The last due date of the Epics should be the due date of the Container.
Here “Container” is Jira issuetype which will have Epics as child issues (container is placeholder for epics like how epics placeholder stories)
Container due date (system due date) we referring as "Container Due Date"
Similarly for “Epic due date”
Here what user want that based on child last due date parent due date should set automatically say if container have 10 epics then container due date should set automatically based on 10 epics last due date set