Is it possible to get completed tasks of a specific user for a specific period of time?

Is it possible to get completed tasks of a specific user for a specific period of time?

I tried to get this using search but it doesn’t work correctly and doesn’t return any of my tasks and there is no next_page

const params = {
assignee: ‘me’,
completed: true,
‘completed_on.after’: ‘2025-02-17’,
‘completed_on.before’: ‘2025-02-21’,
workspace: this.workspaceId,
limit: 100,
opt_fields: ‘name, completed_at, permalink_url, completed_by, assignee’
};

const response = await axios.get(https://app.asana.com/api/1.0/workspaces/${workspaceId}/tasks/search, {
headers: {
‘Authorization’: Bearer ${this.token},
‘Content-Type’: ‘application/json’
},
params
});

Hi @Zhyzhenko_Andrew
Welcome to the forum.

@Phil_Seeman is this something you can help with?

Hi @Zhyzhenko_Andrew and welcome to the forum,

There are a just few adjustments needed to your parameters; give this a try:

https://app.asana.com/api/1.0/workspaces/[workspace_id]/tasks/search?assignee.any=me&completed_on.before=2025-02-21&completed_on.after=2025-02-17&opt_fields=name, completed_at, permalink_url, completed_by, assignee.name
2 Likes

Thanks Phil for jumping in!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.