Hi,
My first query here.
I want to retrieve tasks assigned to the logged in user. The initial plan was to use GET /tasks API.
However ,after testing for some scenarios, I understood that the API returns tasks if the logged in user is the creator of the process too.
API documentation(on API-Explorer) is not clear on this.
"Gets a list of tasks visible to the authenticated user.
Tasks are returned for which the authenticated user is the assignee or
a candidate...."
My query is how do i filter the response to retrieve only the assigned or candidate tasks? ( i.e. to avoid the unassigned tasks from the processes created by logged in user)
Thank you,
Viresh
P.S.: I usually find answers on this forum or via code on github but for this query couldn't find enough info.
Edit 1:
My quick fix idea ,as of now, is to use GET /tasks/{taskId}/candidates API respone to check if the logged in user is one of the candidates. As the current scenarios ,doesn't invlove groups, this should be sufficient.
But was wondering if there's a better way. Also wonder if the API documentation is incomplete ,if not incorrect.
Thank you.