Get tasks of all users using js API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 06:29 AM
Hello. I was trying to use "api/task-instances", but it returns tasks only of the one user. Can i get current tasks of all users?
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 06:57 AM
Hello,
Yes you can but for that you need to create custom api.
You can use Java workflowService to get all current tasks of all users.
Vidhi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2020 07:04 AM
@vidhipanchal ,thanks you for the answer. I don't know, how to create custom api. Have you got some examples or tutorials?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2020 12:52 AM
Following are the few links which helps you to understand how can you create webscript(API):
https://docs.alfresco.com/5.2/references/dev-extension-points-webscripts.html
https://ecmarchitect.com/alfresco-developer-series-tutorials/webscripts/tutorial/tutorial.html
http://www.krutikjayswal.com/2016/10/alfresco-webscript-spring-webscript.html
For getting workflow related data you need to use WorkflowService.
Vidhi
