cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to fetch task assign to user and also the document which is related to that task in a single query or in one call

sourabh_gupta
Champ in-the-making
Champ in-the-making
5 REPLIES 5

Guillaume_Renar
Star Contributor
Star Contributor

You can use the targetDocumentIds fetch property on the task endpoint like this:

curl -X GET 'https://yourServer/nuxeo/api/v1/task?userId=userId' -H 'accept: text/plain,application/json, application/json'  -H 'Connection: keep-alive' -H 'X-NXfetch.task: targetDocumentIds,actors' -u user:password

I thought it was documented in https://doc.nuxeo.com/ but I can't find it anymore. I created https://jira.nuxeo.com/browse/NXDOC-1313 to update the doc.

Note that you can also fetch the actors

Is it possible with javaScript client??

Yes, please refer to https

Thanks