Hi team.
I am facing this issue when using the Search Tasks API.
If I send the request like this it works like a charm:
issues = self.client.tasks.search_tasks_for_workspace(
workspace_gid='XXXXX',
params={'completed': True},
opt_fields=['gid', 'name', 'assignee.gid', 'assignee.name', 'completed_at', 'projects.gid', 'projects.name']
)
But for reducing the amount of data to process on my side, I need to get the tasks closed after a given date. And then, the following query fails with the error: You must specify at least one search filter
:
issues = self.client.tasks.search_tasks_for_workspace(
workspace_gid='XXXXX',
params={'completed_at_after': a_given_iso_date, 'sort_by': 'completed_at'},
opt_fields=['gid', 'name', 'assignee.gid', 'assignee.name', 'completed_at', 'projects.gid', 'projects.name']
)
It doesnât make sense to me. I am using a search filter in both cases, completed
and completed_at_after
.
Is there any Python library team member who can shed some light on this matter?