Help with Assigning Roles in Fusion Task Logic
- October 16, 2024
- 1 reply
- 914 views
I'm using Fusion and working on a setup where I want to assign specific roles to a task based on selections in multiple fields. The best method I've found so far is using the Misc Action module with logic strings for each role. When a field indicates a role is needed, I assign the corresponding Role ID. However, when a field is not selected, I encounter an issue.
Initially, I tried setting the result to null when a role wasn't needed, but that generated an error. To work around it, I've been assigning a default role—specifically the project manager role, since they are always assigned to tasks. However, this results in the project manager being assigned multiple times when fewer roles are selected. For example, if two out of five fields are selected, the project manager role ends up appearing three extra times in the task.
Here’s a basic idea of the logic I'm using for Role IDs: If (Field selected = yes; assign specific role, otherwise project manager role).Screenshot below.
Do you have any advice on how I can avoid the duplication issue? I also tried using the API module, but I wasn’t successful. Any suggestions would be greatly appreciated!
Also, If I can just create a module that allows be to add a RoleID without overwriting previously added RoleIDs. I am open to that.
