You are viewing limited content. For full access, please sign in.

Question

Question

Conditionally Assigning to a Team in a Dynamic Filter

asked on May 18, 2022

Hi,

I have a dynamic filter that will currently assign a task to a team member based on a form variable.  That part is pretty straightforward and working well.

However, if the variable is blank, we would like to assign the task to the team as unassigned as if "No filter" was indicated rather than a dynamic filter.

I can get pretty close to what I want if I do something like this, and the task does ultimately end up in the Unassigned bucket, but it shows that it's in progress with all the team members as opposed to just the team name:
 

if ($util.getValue('AssignToInvestigator') == '') {
    $result = team.getAllMembers(); // Can we somehow indicate "Unassigned" here?
}
else {
    $result=team.findTeamMembersByDisplayName($util.getValue('AssignToInvestigator'));

}

Any thoughts on how to do this cleanly without adding more gateways and tasks to the business process?

Thanks!

0 0

Answer

SELECTED ANSWER
replied on May 18, 2022

If I'm understanding correctly, then what I think you're trying to do isn't exactly possible.

When you assign to the team with no filter, it assigns to the team itself.  But with any filter, it's trying to determine which teams members to assign to, and then it assigns to those specific users within the team.  Even if it is every single member of the team.

You're getting the effect you want of it being assigned to all members of the team, but it shows assigned to those members of the team instead of assigned to the team itself.

It sounds like you want it to act as if there is a filter in one case, and act as if there isn't a filter in another.  I don't believe it can do that.

0 0
replied on May 18, 2022

I think you're right Matthew; I've had more time to play with this and have come to the same conclusions.  I was hoping I was just missing something, perhaps a method that wasn't documented. 

For now I'll just use the getAllMembers() call and get it "close enough" for what I need.

1 0
replied on May 18, 2022

It's a bit of a bummer, but I would do the same.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.