We have been successfully using an API to search for specific tasks and mark them done/complete.
The following has worked as expected, when one user is assigned to the task:
We are now assigning two people to the "Build" tasks, but the above will only update the task as "Done with my part." What should we use other than markDone so that the task will be Complete?
We also tried assigning a Team to the task, but the status did not update at all.
Any ideas?? Thank you!
Solved! Go to Solution.
Views
Replies
Total Likes
Hello Cathy,
If more than one object is assigned to a task, it is necessary to pass a status as an argument.
So, if you call the action markDone, you also have to pass something like this in your body. Before you will need to check, which key corresponds to completed in your statuses.
{
"status": "CPL"
}
This should finally complete the task.
For me it would be interesting, how your workflow is set up, as I only see the possibility to set markDone via API, if you use one of the assigned users for the API call. If you are using a dedicated account for API calls, there is no possibility to pass an assignmentID to mark a task as done, which is not assigned to this user.
Regards
Lars
Views
Replies
Total Likes
Are you just trying to update the status? If so, could you just update the status directly?
Views
Replies
Total Likes
I have to say, I'm pretty curious about what would happen if you called markDone twice (one for each user)
Views
Replies
Total Likes
Full transparency - this is not my process, but I wondered the same thing and asked my user. He said that it just marks his portion of the task done again, it does not mark the other assignee's part Done.
Views
Replies
Total Likes
Hello Cathy,
If more than one object is assigned to a task, it is necessary to pass a status as an argument.
So, if you call the action markDone, you also have to pass something like this in your body. Before you will need to check, which key corresponds to completed in your statuses.
{
"status": "CPL"
}
This should finally complete the task.
For me it would be interesting, how your workflow is set up, as I only see the possibility to set markDone via API, if you use one of the assigned users for the API call. If you are using a dedicated account for API calls, there is no possibility to pass an assignmentID to mark a task as done, which is not assigned to this user.
Regards
Lars
Views
Replies
Total Likes
Thanks so much, Lars! Worked like a charm.
Views
Replies
Total Likes
Views
Likes
Replies