This is an old revision of the document!
Following scripts can be used for scripted validators within the workflow
issue.projectObject.name == "My First Project Name"
if ( cfValues['FIELD1']?.value == 'Yes') { if ( cfValues['FIELD2'] ) { return true } else return false } else return true
Date today123 = new Date() if ( cfValues['FIELD1'] ) { if ( cfValues['DATEFIELD2'].getTime() > today123.getTime() ) { return true } else return false } else return true
def selectedSegment = cfValues['Segment'] def selectedSegmentString = selectedSegment.toString() if ( selectedSegmentString.equals("Some String") ){ // do something here }