Get all Trello cards in a specific list from all boards in the organization sorted by member

I am completely new to the Trello API and I am looking for a good solution to the problem I am having.

Question

We have an organization with quite a few tips.

  • All boards are visible in the organization.
  • Some councils also include members who are not members of the organization.
  • The lists within the board have specific names such as "To Do", "In Progress", etc.

We have a status screen where we would like to display all cards from a specific list within the organization. These cards must be sorted by member, even for non-members.

Most of this information is dynamic, such as members, maps, and boards.

What am I doing now

At the moment, I found a solution where we make a lot of API requests, which of course has a limit .

  • First, we traverse all boards within the organization to get the board ID.
  • We then iterate over this ID to get all the items inside all the boards. This is necessary because some of the board members are not members of the organization. Duplicates are removed.
  • When this is done, we have discovered two different ways to get cards. (1) Go through members/[idMember or username]/cards

    . here we cannot get the name of the list. (2) Go through boards/[board_id]/lists

    , we can't get the member's name here.

Since we cannot get all the information in one or only a few requests, this process is very slow and even unstable due to a limitation in the API.

Is there anyone with a good / better solution? In an ideal world, I would like to receive one request:

GET /1/organizations/[idOrg or name]/boards

where we can send arguments to get all cards, all members and all lists.

+3


source to share





All Articles