Hi all,
We are trying to create new custom widgets to show the user claimed the task in one widget and unclaimed task in another widget. As per our exploration, we noticed that the below REST API's are getting called in order to bring the user assignments in the My Assignments widget.
URL -
http://<hostname>:<port>/OTCS/cs.exe/api/v2/members/assignments?fields=assignments&state=true From the above API response, we could not see any parameters to differentiate which is a claimed task and which is an unclaimed task from the My Assignments widget.
When we further explored on this, we found that there is a flag to identify whether the task is already claimed by the user, or still it is associated with the group. But this will come to know when we open the specific task by passing workflow id, sub-workflow id & task id.
API -
http://<hostname>:<port>/OTCS/cs.exe/api/v1/forms/processes/tasks/update?process_id=107967&subprocess_id=107967&task_id=3 The flag is
"member_accept":
true,
We would like to know any other REST APIs are available to filter the user claimed task or unclaimed task. So that we can use that API directly instead of calling multiple APIs which could lead to any other performance issues in the future.
Thanks in advance