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

Search cards using list of cards id

Hi,

I'm trying to get cards information using list of cards id. I found that it possible to achieve using the api search but I couldn't pass the list of cards.

here is my url:

'https://api.trello.com/1/search?&modelType=cards&query="card1,card2"&key=[key]&token=[token]'

What am I doing wrong? or there is better way to receive this data?

Thx,

Nicolas 

1 answer

@Nicolas this this from the py-trello library 

def search(self, query, partial_match=False, models=[],board_ids=[], org_ids=[], card_ids=[], cards_limit=10):

This query limits the search on information within board, cards...etc. It does not search card by card_id

If I have to get cards that matches card_ids I would go through all the cards but then if I already have the id then client.get_card(card_id) gets you the card...really no need to search.

** all based on py-trello

My apologies if I have not understood your question completely

thank you for the quick answer

can i pass the search function wildcard on the query parameter and pass list of card ids ?

When you do that basically you are saying get me ‘xyz’ but look at only these cards with these IDs

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...

793 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