asked on February 5, 2020
I am trying to get my Javascript Filter to return a default result of nothing in certain scenarios where I do not want a task assigned to a specific user within a team but in other scenarios I do.
Is there a way to make this work?
Currently the task suspends when an empty array is returned from the javascript filter. I would expect this to just default to assigning to no one within the team.
var needsSigned = team.findTaskLastSubmitters(4); if (needsSigned.length > 0) { /* if previously signed by MFG leave it assigned to whole team */ $result = []; } else { var createFormSubmittedUser = team.findTaskLastSubmitters(14); if (createFormSubmittedUser && createFormSubmittedUser.length !== 0) { $result = createFormSubmittedUser; } else { $result = team.findTaskLastSubmitters(15); } }
0
0