Hi !
I want to autocomplete a date customfield with the today's date during a screen transition if it's empty.
I wrote this script in a behavior which select field and transition :
def champDateLivre = getFieldById( "customfield_10400" )
def dateDuJour = new Date()
dateDuJour = dateDuJour.format( "d/MMM/yy" )
def valeurInitiale = getFieldById( "customfield_10400" ).value
if ( valeurInitiale == "" )
{ champDateLivre.setFormValue(dateDuJour)
}
I get the date in the customfield BUT when I validate the transition I get error message : "Format de date non valide. Veuillez saisir la date au format 'd/MMM/yy'"
= Invalide date format. Please use format dat 'd/MMM/yy'
Is that one iI use and I verified configuration jira.date.picker.java.format : is the same...
Can someone help me ?
Thanks