I want to write a groovy script condition to validate if a date is in the future.
the date is not set in the issue. if the user wants to pass the transition, a pop-up appears with a screen where the (empty) date-field is. he puts in a date and if he submits, the date should be checked.
Problem: println says, cfValues['customfield_13430'] is null. so the whole condition breaks and every time returns the defined error message.
can you help me please?
And take care, because it's the translated name of the custom field. So if you use translated custom fields you should get the cf on your own (using the id or the unrtanslated name) and read the value directly (issue.getCustomFieldValue(cf)) until https://jamieechlin.atlassian.net/browse/GRV-335 is fixed.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs