25

I'd like to find all the Archived cards from a given list. I'm fine with using the web site or using the Trello API.

1

4 Answers 4

31

I realize this is an old question but I could not comment on the top answer due to shortage of reputation.

Currently it is possible—see http://help.trello.com/customer/portal/articles/1145462-searching-for-cards-all-boards- for more information. Trello searches across boards so it will find all the archived cards in all the lists with the specified name.

Enter this in the search box: is:archived list:Done

2
  • 1
    Comments are comments and you gave an answer Jun 19, 2018 at 11:51
  • is:archived is a good workaround May 23, 2021 at 17:35
2

This may not currently be possible. Note the limitation here:

http://help.trello.com/customer/portal/articles/1145462-searching-for-cards-all-boards-

"Trello search currently only searches cards and names of boards. It does not currently search checklist items or list names."

You can easily search for archived by just adding 'is:archived' to the search.

1

It's possible using the API. See here:

https://trello.com/docs/api/list/index.html

For example, from the Trello dev board:

curl https://api.trello.com/1/lists/4d5ea62fd76aa1136000001d?cards=closed&card_fields=name

(Check out HTTPie for a nicer experience)

To get the id of the list, either use the API or do it the poor man's way: entering something like this in the JS console with the relevant board open:

_.map(ModelCache._cache.List, function(value, key) { return {id: key, name: value.get('name')}; })[0]

That only works because the Trello Dev board is public. To get data from a private board, follow the instructions here:

https://trello.com/docs/gettingstarted/index.html

0

According to the Trello API documentation, possible options for filter are all, closed, none, open and visible`. So to get all archived cards, do:

https://api.trello.com/1/boards/{board}/cards?filter=closed&key={key}&token={token}

For all cards, both archived and unarchived:

https://api.trello.com/1/boards/{board}/cards?filter=all&key={key}&token={token}

You can then filter the result on a list ID.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.