Skip to content

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

Open

Description

@omzevr

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

Activity

  1. vitaliypo commented on Feb 18, 2019

    @vitaliypo

    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.

  2. bryanchug commented on Oct 18, 2020

    @bryanchug

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions