Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Move Trello card to a predefined list when a Pocket article is archived #2

Open
@OrBin

Description

@OrBin

Add a section in code that links between the Pocket article and the Trello card:

  • Each Pocket article should have a tag with the Trello card ID
  • Each Trello card should have a pocket_article_id custom field with a value of the pocket article ID. (Since custom fields is a power-up in Trello, this feature should be enabled explicitly in the configuration file).

In addition to checking the newly-added articles, now the newly-archived articles should be also checked, and for each one of them, the appropriate Trello card should be moved into a predefined list (the list ID should be a new field in the configuration file).

Additional notes:

  • Pocket API documentation for adding a tag
  • py_trello enables reading custom fields (card.customFields), but not setting them.
    • Make sure to request a feature of setting custom fields in py_trello.
    • For getting a card's pocket_article_id (if set), use: [field.value for field in card.customFields if field.name == 'pocket_article_id']. This will be a list with a single element with the ID value if exists, or an empty list if there's no such value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions