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!
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
Are you just trying to update the status? If so, could you just update the status directly?
表示
返信
いいね!の合計
I have to say, I'm pretty curious about what would happen if you called markDone twice (one for each user)
表示
返信
いいね!の合計
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.
表示
返信
いいね!の合計
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
表示
返信
いいね!の合計
Thanks so much, Lars! Worked like a charm.
表示
返信
いいね!の合計