Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

trello rest api to get list of card that are recently updated

Mumtaz Ahmad May 30, 2020

I am  fetching a list of cards and their actions via rest api  . I use this api https://api.trello.com/1/lists/5a78b08c6f85c304e464aa07/cards to fetch a list of cards. I have roughly 300 cards in the list. Later i  fetch actions of each card as well via rest api. I update this information daily via script and every time i update i have to fetch actions of all 300 cards as i donot see any way to find a list of only those cards which are recently updated.  It takes time now to fetch all 300 cards actions and most of time very less number of tickets are updated. I find it an unnecessary network traffic and load on your server too which can be avoided if there is any way to determine only updated ticket . I do see a field dateLastActivity but i doubt it can be used for this purpose as this field is always updated even if nothing is changed on ticket. Is there any way out?

 

1 answer

1 accepted

0 votes
Answer accepted
Iain Dooley
Community Champion
June 2, 2020

@Mumtaz Ahmad If you use the search endpoint instead of the cards endpoint you can filter using "edited:day", here's my implementation of the search endpoint for reference:

https://github.com/iaindooley/trellinator-libs/blob/master/TrelloApi.js#L39

Mumtaz Ahmad June 5, 2020

Is it possible for you to send me a url for help. I can access search end point but somehow i donot see  edited field in the returned json. What query i should use? There is so less documentation on search end point on trello so i am just trying things blindly 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events