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

No save Labels on trelloApi.updateCard(itemCard); #20

Open
omzevr opened this issue Mar 13, 2017 · 2 comments
Open

No save Labels on trelloApi.updateCard(itemCard); #20

omzevr opened this issue Mar 13, 2017 · 2 comments

Comments

@omzevr
Copy link

omzevr commented Mar 13, 2017

Hi,

When I tried to do the follow statement:

trelloApi.updateCard(itemCard);

The card lost theirs Labels.

In my case, the object "itemCard" is coming from trelloApi.getBoardCards(idBoard) statement and all data is correct until I do the update.

Regards

Omar

@vitaliypo
Copy link

Indeed, any card.update() call erases Label from card on Trello board. The only workaround is to save Labels before update() and use them to send correct request by youself: https://developers.trello.com/reference/#cardsidlabels
Tip: this api won't create label duplicate if you use existing parameters (name, color), so you can use it both for creating new labels and assign already existing ones to the card.

@bryanchug
Copy link

Adding idLabels to Card should fix the issue.

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

No branches or pull requests

3 participants