We ended up having to do the same thing - retrieve the task from the Operate API and then increment the returned key by one which we then use to query the Tasklist API. Feels super “hacky”.
Edit: Incrementing with 1 is not reliable, sometimes the task ID will be the same as the returned key, other times it’s +2 etc…
Hello, do we have some feedback on this feature ?
I think since the task completion update the process instance there must be a link between the Task and the ProcessInstance (the problem is that link is currently not exposed in the API Task object)
we plan to work on this topic this quarter, allowing you to retrieve user tasks based on both process definition and/or process instance ID by providing it in the TaskQuery filters.
@Jenneffer_Jiminit, @g.manzano, and @GLE - this feature was added to the API. You can now query tasks using a process instance ID with both the GraphQL and REST APIs. Hope that helps! Please let me know if you have any questions or issues!