Sync Wrike subtasks to task dependencies

Recipe ToolsProject ManagementMarketing

What it does

When someone calls this automation, it retrieves a Wrike task and its subtasks. It creates a dependencies list, copies subtasks to the parent task, and updates task variables with calculated dates.

Who it's for

Operations teams who need to consolidate Wrike subtasks and dependencies without manual updates.

How teams use this

Consolidate subtasks into one task view

Copy all subtasks to the parent task record so team members see the full scope of work without opening each subtask separately. The dependencies list is built at the same time.

Sync subtask data to a project dashboard

Route the subtask list and calculated dates to a project management dashboard so stakeholders see real-time task progress. Only the destination system changes.

Add custom fields to subtask records

Include additional custom fields in the subtask list so each copied subtask carries budget, priority, or owner information. The loop structure remains the same and only the data collected expands.

How it works

  1. Receive the function call. A function call arrives with the parent task ID and blueprint details needed to sync subtasks and dependencies.
  2. Fetch the parent task from Wrike. Retrieve the Wrike task by ID to access its subtasks, dependencies, and current properties for the sync.
  3. Loop through and fetch each subtask. For each subtask in the parent task, get its details from Wrike by ID so all information is current and complete.
  4. Build lists and update task variables. Create dependencies and subtask lists, calculate date variables like due_date and start_date, then update the parent task with these values.