Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / General

Card Labels

Card Labels

Wekan / General · March 9, 2020 at 5:47pm

It would appear that api endpoint new_card does not permit adding a card level label. Please confirm

It would also appear that put_board_list_card does permit adding a card level label. It says body string as labelIds (plural). Does that mean I can assign more than one label? That is a group of labels that get replaced with the next PUT? If I want to add two labels they are a string with a separator (like a comma) its not clear? How does that work?

Can I assume that the color of the label is fixed? Or that all the labels are the same color?

Are board level labels the same? it looks like I can add many labels to a board one at a time? The color of the label does not seem to be there either ??


March 10, 2020 at 7:44am

One card can have many labels

    • reply
    • like

    First you add label to board with text and color https://github.com/wekan/wekan/blob/master/models/boards.js#L1642

      • reply
      • like

      Maybe docs is missing color parameter. https://wekan.github.io/api/v3.83/#add_board_label

        • reply
        • like

        Available colors are listed in board.js code

          • reply
          • like

          Then when editing card, you add all labelIds of existing labels array https://wekan.github.io/api/v3.83/#put_board_list_card

            • reply
            • like

            Yesterday I added these Python3 examples of using api https://github.com/wekan/wekan/wiki/New-card-with-Python3-and-REST-API

              • reply
              • like

              On those, params is used for labelids etc

                • reply
                • like

                You can also export board with api https://wekan.github.io/api/v3.83/#export

                  • reply
                  • like

                  To see existing ids

                    • reply
                    • like