Expand my Community achievements bar.

Using Fusion To Remove Roles From All Tasks In A Project

Avatar

Level 3

Hello,

 

I am trying to add a module(s) that will search a Project for every Task that contains a certain Role, and to then remove that Role from all of those tasks. Does anyone have a way of achieving this in Fusion?

 

Thank you

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

8 Replies

Avatar

Community Advisor

I haven't tested this but I would start with the search function and search assignments for that specific role ID and then updated it. 

 

KellieGWAB_0-1732207567883.png

 




Avatar

Level 3

Hi Kellie,

 

I was able to create a module to search for assignments but am unsure how to go about removing the role from those tasks. Can you direct me as to how?

Avatar

Community Advisor

 

Hi @Eric_D_Miller,

 

If there is no reason otherwise to keep it, I suggest you consider the drastic but simple option of deleting that Role.

 

Regards,

Doug 

Avatar

Community Advisor

Hi, What is the long game here? Are you looking to remove that role from all existing tasks and never use it again? Then I would just delete it in the Roles area of Setup.

Are you looking to remove that role from certain projects on an ongoing basis? I think the solution depends greatly on the context of what you're trying to achieve in the long run.

Avatar

Level 3

Essentially I am looking to remove the role from all tasks on the project if certain fields are selected.

 

I have a module set to search for assignments containing that role in the project already and the proper filters are set to ensure that the modules only process when certain fields are selected.

 

What don't know is how to unassign/remove the role from those existing assignments I searched for.

Avatar

Community Advisor

The basics of what you probably need to do is:

Convert the assignment data into an array.

Iterate through the array of assignments and remove matching entries using the remove function something like this: remove(array of all assignments;value from iterator)

 

Disclaimer: I have added assignments to an array via the add function but never tried removing one.

I would also suggest asking this question in the Make.com community HERE. If you've never heard of Make, it's a commercial version of the automation tool from which Fusion is derived. Their community and learning materials are superb. I learned Fusion by completing the Make Academy training and using Make.

Avatar

Level 3

Thank you for the assistance so far Randy. I will keep that resource in mind as Fusion is somewhat new territory for me.

 

If I can continue to pick your brain, which module should I utilize the 'remove function' in once I have my iterator working?

Avatar

Community Advisor

Misc Action is what I'm using.

Here's a screenshot and a suggestion

ScreenShot 2024-11-25 at 4.08.51 PM.jpgScreenShot 2024-11-25 at 4.09.28 PM.jpg