Hi,
Is there a way to pass the username as a filter in the worklogs api?
/api/rest/workLogs/all
Thanks,
Leo.
-
Hello Leo,
The REST API requests cannot be filtered by using the worklogs filter and can only be filtered by the fields specified in the Timetracker API reference.
What I would recommend is for you to use our Reporting API and and OData request, by using the worklogsWorkItems endpoint for instance you can get the same data and you can also use the worklogsFilter to filter by the username.
Let me know if this helps.
Best regards,
Vanja -
Hi Vanja,
Thank you for your response.
With the reporting api, I'm getting the required data using the UserId filter. Is there a way to pass the username in the query? The User.Email filter gives me an error The child type 'User.Email' in a cast was not an entity type. Casts can only be performed on entity types.
/api/odata/v3.2/workLogsWorkItems?worklogsFilter=User.Email eq 'leo.dsouza@regoconsulting.com'
Regards,
Leo.
-
Hi Leo,
Please try with this:
/api/odata/v3.2/workLogsWorkItems?worklogsFilter=User/Email eq 'leo.dsouza@regoconsulting.com'
Kind regards,
Vanja
Please sign in to leave a comment.
Comments
5 comments