✅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
The frontend (app.tasksource.io) calls the API (api.tasksource.io/accept-work-result/TASK-ID)
the backend should now set a field in the task document (workResultIsAccepted = true)
change task document databaseStatus into "closed".
call the gernreate invoiced API (https://desent-solutions-gmbh.gitbook.io/api-documentation/step-4-taskflow/generate-invoice)
Send First Email:
to_email_adress = email_of_assigned_person
template_name = "work-result-accepted->developer"
data = {taskData: taskData, taskId: taskId}
Send Second Email:to_email_adress = email_of_task_creatortemplate_name = "work-result-accepted->creator"data = {taskData: taskData, taskId: taskId}
Last updated