Missions
Mission routes manage tasks and follow-up work, including lists, counts, creation, details, updates, completion, form data, and deletion.
Mission Fields
- Missions can include title, customer_id, assigned user, creator, due date, priority, private flag, status/done state, notes, and related files/messages.
- Use Mission.FormData when the UI needs dropdown data for mission forms.
- Date/time values should be UTC Y-m-d H:i:s.
Lists And Filters
- Mission.List should return structured data for today, priority, upcoming, done, created-by-me, my tasks, and team tasks where supported.
- Common filters include customer_id, private, priority, status/done, assigned user, creator, date ranges, search, and paging.
- Use Mission.Count with the same filters when the UI needs totals.
Actions
- Mission.Add/Create creates a task and can notify assigned users.
- Mission.Update/Edit changes fields such as due date, owner, priority, private flag, notes, or title.
- Mission.Done marks the mission complete and should refresh task counters and sockets.
Common Flow
- Load mission permissions and team members from User.Basic.
- Use Mission.List/Count for task boards and list pages.
- Use Mission.Get for a single task.
- Use Add/Update/Done/Delete routes and listen to socket events for live refresh.