Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cards lack GetList() method #67

Open
fdcds opened this issue Jun 11, 2020 · 1 comment
Open

Cards lack GetList() method #67

fdcds opened this issue Jun 11, 2020 · 1 comment

Comments

@fdcds
Copy link

fdcds commented Jun 11, 2020

Card has a List field, but no Card.GetList() method to fill it.

The information does not appear to be returned by the Trello API for calls to List.GetCards(), and cannot be optionally requested through it, since https://developer.atlassian.com/cloud/trello/rest/#api-lists-id-cards-get does not describe a fields argument (and it is not respected by the API).

@TJM
Copy link
Contributor

TJM commented Nov 2, 2020

Card shouldn't have "getList()" as that is a method on Board (and Client). However, finding the parent object can probably be useful, so I added it in that PR #77 when it was available. There was also a method or two where list was not available. I am not sure why you would want Board.GetCards, but in that case, we may need to come up with a way to get a map of lists map[string]*List (lists[IDList] = *List), cause if you are retrieving all the cards on a board (not sure why that would be useful), we don't want to "getList(IDList)" for every card. Feel free to test out my PR and let me know if that fills your need.

~tommy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants