Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trello API Search Query

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

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
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

814 views 13 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you