Tasks Filtered by Section and Modified_Since Not Working

Briefly describe (1-2 sentences) the Bug you’re experiencing:

Obtain the tasks that have been modified since a certain date-time. When filtering the gettasks by the project gid, it works fine. However, when doing so with the section gid, it seems that the modified_since parameter is not triggered and I obtain all tasks within the section regardless of their last modification date.

Steps to reproduce: get taks by section and modified_since parameters

Browser version: None - Python 3.11

Upload screenshots below: -

1 Like

Hi @JMBB,

I was able to reproduce this. Let me check with the team to confirm if this is a bug. In the mean time, if you are blocked by this, another endpoint that you can use to achieve this query is the GET /workspaces/{workspace_gid}/tasks/search (Search tasks in a workspace) endpoint [NOTE: In order to use this endpoint you will need to have a premium Asana account]

Here’s an example cURL:

curl --location 'https://app.asana.com/api/1.0/workspaces/<WORKSPACE_GID>/tasks/search?sections.any=<SECTION_GID>&modified_at.after=<ISO_8601_DATETIME_STRING>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <ASANA_PERSONAL_ACCESS_TOKEN>'
1 Like