Since a few hours (maybe days) it´s not possible to get only non-archived projects via API using the node-sdk-v1. I´am able to get non-archived projects using node-sdk-v3 but not using v1.
You can reproduce the issue by creating a new node project and using the code below:
Hello, i have the same problem, since this morning, the parameter “&archived=false” in my get request doesn’t work. What i did is, listed all projecs from a team workspace and in the optional fields i included “opt_fields=created_at,name,archived ” , then what i did is, comparing if this is equals to true or false to only get the non-archived ones.
Hope this helps, and i hope the parameter thing is just a bug.
It looks like you are making an API call to our Get all projects in a workspace endpoint. If you look at these docs under the “QUERY PARAMS” section team is not a valid query param for this endpoint. archived however is a valid query param for this endpoint. If you leave out team and provide archived it should work as expected.
The code you have suggested seems to work, ignoring team parameter makes that archived works. That weird because the code I provided previously works well since years until some hours ago…
In view of the above, I supposed that we need to call getProjectsForTeam including param archived: false for getting all non-archived projects from a team… But this also does not working… archived parameter is ignored too.
That weird because the code I provided previously works well since years until some hours ago…
I checked with our API team and we have identified this to be a bug.
Summary of the issue:
When you make an API call to Get all projects in a workspace (GET /workspaces/{workspace_gid}/projects) with archived = false + team=<YOUR_TEAM_GID> - EXPECTED: to return projects in the team that are not archived - CURRENT/BUG BEHAVIOR: projects being returned that are in the team but include archived projects
When you make an API call to Get a team’s projects (/teams/{team_gid}/projects) with archived = false - EXPECTED: to return projects in the team that are not archived - CURRENT/BUG BEHAVIOR: projects being returned that are both archived and non-archived
Workaround Soltuion (at least until we have a fix out):
It looks like you beat me to it. We deployed the fix yesterday. I wanted to wait a bit before replying in case we had to roll back, but we are good here. Thank you for reporting and helping us test this issue