How to get amount of cards created with certain label during some time period?

Marek Sławiński February 13, 2023

I'm new to Trello, but I've used similar software before. 

I want to generate a report with amount of cards created in Trello with certain label each month or week since the beginning of my project - or at least last few months. I did some internet browsing, but did not found any ready to use solution.

I know that Trello has REST API, I'm able to build script, which will request those information. 

Details I have:

- label name

- board id

- time period (start:end whole period or segments for each month / week)

Does anyone know a ready to use solution (preferably) or has any experience with Trello API to be able to confirm or deny that what I want is even possible?

Thanks for help.

2 answers

1 accepted

0 votes
Answer accepted
Marek Sławiński February 15, 2023

For anyone looking for a solution to similar problem in the future:

I solved this problem by using search endpoint from Trello REST API. I queried API to get all cards matching my query, then I parsed returned data. Most important thing is to know, that Trello does not return createdDate or similar field - one has to parse id field to get that (id is MongoDB ID probably).

0 votes
Oliver S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2023

Hi Marek, welcome to the community! :)

We have the Dashcards Power-up, which allows you to set up a type of card that tracks how many cards match a combination of filters: label, assignee, list, etc.

https://trello.com/power-ups/6048e897c73d032a983e2a7c/dashcards

Feel free to check it out, and hopefully it helps as a starting point to achieve what you're after. :)

If you'd prefer to do something more custom / specific with the API, would definitely suggest asking over at the Atlassian Developer Community for Trello: https://community.developer.atlassian.com/c/trello/42

Marek Sławiński February 15, 2023

Thanks!

Oliver S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2023

No worries! Hope it all goes well!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events