Update Wrike task status recursively

Recipe ToolsProject ManagementMarketing

What it does

When someone calls this automation, it retrieves a Wrike task and marks it obsolete. The automation then repeats that status change on all subtasks down the hierarchy until none remain.

Who it's for

Operations teams who need to mark a Wrike task and all its subtasks as obsolete at once.

How teams use this

Mark a project obsolete with children

Set a parent task to obsolete and have all subtasks update automatically without manual effort. The team sees the entire branch marked at once in Wrike.

Deprecate a feature across sprints

When a feature is cancelled, mark the epic as obsolete and every child task in every sprint updates in one pass. No subtask is missed.

Add approval before marking obsolete

Include a condition to check if the task has a specific custom field value before the status change runs. Only tasks that meet that condition will be marked obsolete.

How it works

  1. Receive the task ID. A function call provides the Wrike task ID that needs to be marked obsolete so the automation can begin processing.
  2. Get the task and its subtasks. Retrieve the task details from Wrike, including a list of all direct subtasks attached to it so the automation knows what to update.
  3. Mark the task obsolete. Update the task status to obsolete in Wrike using a custom button so the change is recorded immediately.
  4. Repeat for each subtask. For every subtask found, call this same automation again so the status change cascades down through all nested levels until the tree is complete.