Accept work result

As a creator, I want to accept the work of a submitted task

Input parameters

  • TaskID

How to call from app

HTTP request to: /accept-work-result/TASKID

Logic

  1. The frontend (app.tasksource.io) calls the API (api.tasksource.io/accept-work-result/TASK-ID)

  2. the backend should now set a field in the task document (workResultIsAccepted = true)

  3. change task document databaseStatus into "closed".

  4. Send First Email:

    • to_email_adress = email_of_assigned_person

    • template_name = "work-result-accepted->developer"

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

  5. Send Second Email:

    • to_email_adress = email_of_task_creator

    • template_name = "work-result-accepted->creator"

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

Last updated