Forums

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

how to specify list-id of the last list?

Kevin Geiss
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!
May 19, 2018
I'm automating creation of a new card using the URL scheme. When I call createCard, it says if you leave off list-id, it defaults to the first list. How do I tell it I want the last list? Or get a list id?

1 answer

0 votes
bentley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2018

Hey Kevin,

Can you go into more detail on what you're doing when `using the URL scheme`?

If you want to specify a specific list on a board, you'll want to get the list's ID from the board. You can read more about lists here: https://developers.trello.com/reference/#lists.

To get all of the lists, and their IDs, from a board, you can use the following endpoint: https://developers.trello.com/reference/#boardsboardidlists.

Using a public board as an example (https://trello.com/b/9QqSylpt/daily-drop-november-report) we can make a request to get all of the board's lists like this: https://api.trello.com/1/boards/9QqSylpt/lists?fields=name,id

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events