Delete a Task
Not Started

Note from the Product Manager:
Tasks ended up being a lot trickier than we thought, this should be the last ticket.

User Story:
As a GreenGuardian CRM Director, I want the system to delete open "Acquire Plants" tasks when a garden's manager is unassigned without a replacement, to help limit open tasks in the system.

Acceptance Criteria:

  • When a garden's manager is unassigned and no immediate replacement is named, its open "Acquire Plants" tasks should be deleted
  • Any task record that meets this criteria should be deleted:
  • Status: Not "Completed"
  • OwnerId: The previous manager
  • Subject: Acquire Plants
  • WhatId: The garden's Id

Example Scenario:

  • Bob is the manager of Willow Garden and Maple Garden and has an open task with both. When he's removed as the manager for Willow Garden, his open task for that garden is deleted. His open task for Maple Garden remains.
  • Beeva is the manager of Mapleshade Garden and has a completed "Acquire Plants" task. She is removed as manager and a replacement is not named. The system makes no changes to her task.