roos-fs tasks #138
Updated by Vadim Pariev 10 months ago
Required Endpoints: - List of services attached to a vechicle - List Tasks attached ot a service - Get all tasks for a service (OPEN, BOOKED, COMPLETED) - Include task ID, title, status, assigned techs, location, dates - Set Task to In Progres, Allowed only if task is in OPEN state - Log timestamp and user ID - Cancel Task Allowed if task is OPEN or IN PROGRESS, Requires reason (internal/customer) and comment - Update Task Details (if service is OPEN) - Set/edit location - Assign specialists - Set planned date - Submit instruction form (must validate required fields) - Submit Instructions Only (together wiht the event of completing the task) - Complete Task - Log updates, timestamps, comments, attached data and user - View Completed Task - Show all filled fields and comments - Fields are read-only unless reopened by authorized user **Acceptance Criteria:** - Users can list, update (status), update, cancel, and complete tasks via mobile - Status changes are logged with timestamp and user ID - Checklist validation is enforced before completing tasks - Completed tasks are viewable with full history - Reopening tasks for editing is only allowed for authorized roles