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

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.