Forums

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

Trello API Search Query

Auruuum
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2020

I'm using a python wrapper for the trello API, and I had a question. How do I go about finding the card ID of a card titled "Pending" in board with ID x?  I'm writing a software to add and delete cards through another platform. The method to delete cards requires the card ID and I'm unsure how to find the ID of a card given its name. Could someone tell me how to do this?

1 answer

1 vote
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2020

def board_cards (id, variables):
   board = client.get_board(variables['board_id')

   for category in board.list_lists():
       for trello_card in category.list_cards() :
          if trello_card.name == 'Pending':

                card_id = trello_card.id

   

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events