inthe.am icon indicating copy to clipboard operation
inthe.am copied to clipboard

Feature : sync trello column with tw attribute (tag?)

Open MartyLake opened this issue 6 years ago • 10 comments

Hello! Would it be possible to sync the trello column with some tw attribute? I know https://github.com/tbabej/taskwiki/blob/master/README.md is doing this with "Viewports" . My use case is this :I use trello on my phone, and I have a column "phone" to look at when I'm wondering "what's next thing to do". But I only use trello on my phone so if I have to manually go to the todo column and move the interesting tasks to the phone column.

What I would like to do is tag the tasks from my computer (tw or intheam web), and it gets to the appropriate column in trello. I'm not sure if this is clear or not, I can do some drawings or explain in other ways. Best,

MartyLake avatar Nov 23 '18 08:11 MartyLake

If I'm understanding you correctly, that's something you can already do. You can, right now, control the column that a task appears in by changing the intheamtrellolistname and intheamtrellolistid fields on the task in taskwarrior. Is that what you're looking for?

coddingtonbear avatar Nov 23 '18 08:11 coddingtonbear

Exactly!

Do you know a way to control/sync this field with a more regular tag? In tw before going to your extraordinary hosting platform, I was using tags (+next, +in, +house, etc.).

The goal would be +in <=> todo column, +house <=> house column etc

I rarely/never use more than one tag per task.

Maybe I should create some script that does this from the TW side? Do you know of anything that can do this already?

Le ven. 23 nov. 2018 à 09:56, Adam Coddington [email protected] a écrit :

If I'm understanding you correctly, that's something you can already do. You can, right now, control the column that a task appears in by changing the intheamtrellolistname and intheamtrellolistid fields on the task in taskwarrior. Is that what you're looking for?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/coddingtonbear/inthe.am/issues/305#issuecomment-441183936, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMGSmnPP2Z6ONHtCm5hlNurV47-R5vGks5ux7hLgaJpZM4YwPxl .

MartyLake avatar Nov 23 '18 10:11 MartyLake

There's no built-in way of controlling what column an item appears in using a tag, no, but you could very easily implement that kind of functionality locally using some pretty lightweight programming, definitely. Inthe.am itself uses the Python taskw library for interacting with the task list -- you could leverage that in a local script to implement the functionality you're looking for, I think.

coddingtonbear avatar Nov 23 '18 23:11 coddingtonbear

OK, thanks!

How would you differentiate if the task tag needs to be updated (because it was moved in trello), or if the task column must be changed (because it was moved on trello 1st) ?

Le sam. 24 nov. 2018 à 00:52, Adam Coddington [email protected] a écrit :

There's no built-in way of controlling what column an item appears in using a tag, no, but you could very easily implement that kind of functionality locally using some pretty lightweight programming, definitely. Inthe.am itself uses the Python taskw library https://github.com/ralphbean/taskw for interacting with the task list -- you could leverage that in a local script to implement the functionality you're looking for, I think.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/coddingtonbear/inthe.am/issues/305#issuecomment-441330797, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMGSoX-qOFxixJCDQlAtn53CM_YA55-ks5uyIpQgaJpZM4YwPxl .

MartyLake avatar Nov 24 '18 16:11 MartyLake

When you make a change locally and synchronize it, or make a change on inthe.am, the following task is run: https://github.com/coddingtonbear/inthe.am/blob/3e79736/inthe_am/taskmanager/tasks.py#L478 .

When we receive a change from Trello, the following method is executed: https://github.com/coddingtonbear/inthe.am/blob/3e79736/inthe_am/taskmanager/models/trelloobject.py#L103

coddingtonbear avatar Nov 24 '18 19:11 coddingtonbear

I set up a hook (using https://github.com/tbabej/taskpirate/blob/master/on-add-pirate) to set the intheamtrellolistname when I do task add, but inthe.am wants to set it to 'To do' regardless of a preexisting value. That seems similar to the issue here - would you mind leaving that value alone if set? If so, I might work on a PR.

jcrben avatar Dec 31 '18 10:12 jcrben

Oh! When creating a new card, we definitely do just set the list to that directly @jcrben - https://github.com/coddingtonbear/inthe.am/blob/30b4c73c037e5883e206cea39e63ad59cc0dc97a/inthe_am/taskmanager/tasks.py#L559

If you create a ticket for that (or, better yet, a PR fixing it -- I'm not likely to be able to find time to fix it for some time), what you're describing is a bug.

coddingtonbear avatar Dec 31 '18 18:12 coddingtonbear

fyi, I hacked my preserve / create new list case to work (at least for the initial case; don't think I handled the update case) at https://github.com/jcrben/inthe.am/commit/87e763f68f6206c24a1bdaf02b327fb9f7952c97 - but I'm going to hold off on a PR until I've figured out why I had to hack the dev environment so much and remove NFS - think I figured out part of that with https://github.com/hashicorp/vagrant/issues/10609). I want to be able to build master cleanly before making any PRs

jcrben avatar Jan 22 '19 03:01 jcrben

Hey @jcrben any news on this feature ? =)

MartyLake avatar Mar 20 '19 23:03 MartyLake

Any progress I make will be on a branch over at https://github.com/jcrben/inthe.am/branches/yours

In any case, I would need to fix the build before doing any feature work https://travis-ci.org/coddingtonbear/inthe.am/builds

Currently spending time mostly on a mac and the vagrant-based dev environment doesn't work very well there

jcrben avatar Mar 26 '19 04:03 jcrben