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 - Get all Lists of a board with Lists Actions

Hi,

 

I need in one request retrieve all Lists of a board but with the Actions linked to the Lists.

Because I need to have the created date and the updated date informations with my Lists.

 

For the Board and for the Cards I can retrieve all this informations using this query:

/boards/IDOFTHEBOARD?actions=createBoard,updateBoard

 

/boards/IDOFTHEBOARD/cards?ations=createCard,updateCard

 

I have tried to do the same query with lists like this:

/boards/IDOFTHEBOARD/lists?action=createList,updateList

But that's doesn't work.

 

Someone can help me ?

 

Thanks in advance.

1 answer

0 votes
Iain Dooley Community Leader Jan 27, 2019

@Jérôme Marquis you can't get the list actions nested resource from a board/lists endpoint.

You'd need to fetch all the lists, then loop through them and get actions for each one using the lists actions endpoint.

Why do you need it in a single query?

Because loop through all lists make too much time when you have a lot of list and I quickly reach the limit of 100 queries for 10s

 

For exemple: 

To recover all my lists, I need less than 1s.
To recover all my lists with the date I need more than 15s

Iain Dooley Community Leader Jan 29, 2019

@Jérôme Marquis Yeah I guess it's just a limitation of the API, you can't get list actions as a nested resource from a board endpoint.

maybe you could get every single board action and manually filter them to only look at list actions.

Otherwise limit the rate you make the queries! 

I've tried this too, but if I get board actions I have all the list of a board included the closed lists

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,520 views 13 5
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