How to prevent transition according to Sub-Task type and Assignee
Issue #934
new
Hi,
I want to prevent a transition at Parent level if SubTask, with Sub-Task Type (custom field) = X and Sub-Task Assignee is "unassigned".
How to do it?
Thanks, Gaby
Comments (4)
-
repo owner -
reporter Thanks, I will try it. But how the validation understand %{00003} != null represents Sub-Task "unassigned" ?
-
reporter For learning purposes, how to use the following function in "Boolean validator with math, date-time or text-string terms" ? :
count(filterByPredicate(subtasks(), ^%{nnnnn} = "X", ^%{00003} != null)) = 0
-
repo owner Hi @gabyj,
Sorry, I made a mistake. The boolean expression you should use is this one:
count(filterByPredicate(subtasks(), ^%{nnnnn} = "X" AND ^%{00003} = null)) = 0
replacing nnnnn with field code for Sub-Task Type custom field.
- Log in to comment
Hi @gabyj,
You can implement that validation in parent's workflow using "Boolean validator with math, date-time or text-string terms" with the following boolean expression:
replacing nnnnn with field code for custom field Sub-Task Type.
Note that
%{00003}
is field code for Assignee.