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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 08:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 09:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 09:34 AM
Note that you can also fetch the actors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2017 04:24 PM
Is it possible with javaScript client??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 04:43 AM
Yes, please refer to https
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 06:54 AM
Thanks
