...
Code Block | ||
---|---|---|
| ||
string errorMsg = "There are still unclosed issues in the current project."; string[] issues = selectIssues("project = " + project + " AND status != Closed AND key != " + key); if(size(issues) > 0) { return false, errorMsg; } |
Validation based on mathematical
...
expression
A SIL validator which checks if a numeric custom field is greater than or equal to 0:
...
More useful mathematical routines can be found in the Math Routines section.
Validation based on date-time expression
A SIL validator which checks if due date is before current date:
...