See the behaviour API, they are fix of groovy and JS
I found the script, but it does not work. can you help ?
def DateField = getFieldByName("due date")
Date DateVal = (Date) DateField.getValue()
Date now = new Date()
For getting the due date object you can use the code
def dateField = getFieldById(getFieldChanged())
Also issue.getDueDate() return the object "class java.sql.Timestamp" and not "Date" as your code has date comparison, thus I would suggest you to add right type casting and may be in logs just print the value of the "due date" field before comparison and make sure both objects are of same type.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events