Hi there,
I am trying to write a script that wont let you edit, create a subtask if the due date is further in the future than the parent issue.
I have searched on various old posts and thought I could do this by using
Jamie's example here - https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/subtask-default-fields.html
or I have seen you can get the parent by using underlyingissue.parent or getparent()?
In the past in other areas of scriptrunner I can use issue.getParentObject
how can I get the parent due date so I can compare it to the child due date?
Can you also look at the below, I have changed this I am comparing custom fields on the same issue but ignore the script for now, is this in the right place? or should it be on the initialiser if I want to get it for parent duedate?
