Is there a way to pass the username as a filter in the worklogs api?
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.
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 'firstname.lastname@example.org'
Please try with this:
/api/odata/v3.2/workLogsWorkItems?worklogsFilter=User/Email eq 'email@example.com'
Please sign in to leave a comment.