/
Require fields in subtasks
Require fields in subtasks
Use this script as a workflow transition validator to allow transition only if a field in the subtask is populated.
string [] subtasks = subtasks(key);
boolean hasField = false;
string errorMsg = "You must have a value for the Fruit field in a subtask entered before this issue can be completed.";
for(string st in subtasks) {
if(isNotNull(%st%.fruit)) {
hasField = true;
}
}
if(hasField == false) {
return false, "error", errorMsg;
}
, multiple selections available,
Related content
subtasks
subtasks
Read with this
Field Required Validator
Field Required Validator
More like this
Set default values for system fields on the Create screen
Set default values for system fields on the Create screen
Read with this
Live Fields Recipes
Live Fields Recipes
Read with this
Build-your-own (scripted) Condition
Build-your-own (scripted) Condition
More like this
Writing Conditions Validators and Post Functions
Writing Conditions Validators and Post Functions
Read with this