I am using Scriptrunner to validate a custom field. This is a Date Time Picker field.
I have tried (issue.customfield_111111 > new Date()) but this does not appear to work.
I was eventually able to work out that the custom field simply contains a string in ISO date format. So this needs to be converted to a Date object before a comparison can be made as follows:
(new Date(issue.customfield_111111) > new Date())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.