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

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

Open
OrBin opened this issue Jun 27, 2019 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@OrBin
Copy link
Owner

OrBin commented Jun 27, 2019

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.
@OrBin OrBin added the enhancement New feature or request label Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant