API Documentation
  • 🦸User
    • 🐔requestDeveloperVerification
    • ☑️Accept Developer verification
    • 🚫Reject developer verification
    • 🆕NEW Authentication Trigger
  • 📧Send emails
  • 📂Projects
    • 📩Invite a new Team member
  • 📔Tasks
    • 💣Cancel Task
    • 🔎Submit task
    • 👨‍💻Assign Task
  • Step 1 taskflow
    • ✅Accept task
    • ❌Reject task
    • ⏳Deadline reached
  • Step 2 taskflow
    • ✅Accept developer (creator)
    • ❌Reject developer (creator)
  • Step 3 taskflow
    • 🚦Submit for review
    • ⏳Review Deadline reached
    • ✅Accept work result
    • ❌Reject work result
  • Step 4 Taskflow
    • 💸Generate Invoice
    • 💸Mark invoice as paid
Powered by GitBook
On this page
  • Input parameters
  • How to call from app
  • Logic
  1. Tasks

Cancel Task

As a task creator, I want to cancel a task

A task creator should have the option to cancel a task as long as he has not accepted the developer's estimation.

Input parameters

  • TaskID

How to call from app

import { httpsCallable } from 'firebase/functions';

await httpsCallable(functions, 'cancelTask')({ taskId })

Logic

  1. Move the task back to drafts (We should maybe build a function for this so we don't have redundant logic)

  2. Remove developer from project members (projects/members) array if no other task with same projectId found

  3. We should send an email to the developer if There is someone assigned-

  4. Send First Email:

    • to_email_adress = email_of_assigned_person

    • template_name = "tasks-canceled-by-creator->developer"

    • data = {taskData: taskData, taskId: taskId}

PreviousInvite a new Team memberNextSubmit task

Last updated 2 years ago

📔
💣