Expand my Community achievements bar.

simple task removal project

Avatar

Level 2

I am working on a project to remove three tasks based on a selection option on the project. if the selection is "What type of template change is this?" = "Minor" then three tasks are to be removed from the project. So when the user creates this project and selects that choice then fusion removes three tasks from the project. "Reg review, Legal Review, Peer Review". I started with a search module looking for projects created with a specific template, then used a read module to gather the data, then i need to point to the choice on the project. i'm thinking i may need a switch module for the choice. Any help would be appreciated.

4 Replies

Avatar

Level 8

Hi @amazingjameso 
Here is what I would do:

  • Use templateID and templateTaskIDs to identify the respective projects/tasks
  • Set the vars up front
  • Search for projects and include the tasks collection, specify ID and templateTaskID
  • make a list of all the found tasks
  • iterate through the list and filter by one of the taskIDs
  • delete task

SveniX_0-1741109859711.png

 

Avatar

Level 2

Thanks Sven! i found out that after the project is created there is a task in the project and in that task is a section where the user would check an option and based on that choice the three tasks would be removed, so im thinking a trigger for a watch event after the project is created there is a change to a particular field.

Avatar

Level 8

Ah yes - even easier! 
then you don't need the template ID, just the template Task IDs (safer in case someone changes the task names)
Yes WatchEvents module there DE:SpecialField = changed and has that value you seek. 

 

Avatar

Level 2

Hey what was in the iterator module that in the filter, pointed to templateTaskIDs?

 

amazingjameso_0-1741118620516.png