dwaring87 / rtm-cli

Remember the Milk Command Line Interface
MIT License
66 stars 14 forks source link

[Feature Request] - Manage subtask #6

Closed codezninja closed 2 years ago

codezninja commented 6 years ago

just started getting into RTM. Love that there's a cli tool. Is there any plans on adding support for subtasks?

dwaring87 commented 6 years ago

I would like to add support for subtasks. Personally I haven't used them and I'm not sure what the best way to implement their use would be.

What I'm thinking at the moment is to add an indicator to the main task indicating the number of sub tasks and then adding a new command that will list the sub tasks for a given task.

Do you have any suggestions on how you would like to see this implemented?

ghost commented 6 years ago

so thats exactly what I was thinking as well.

01 (1) Main Task Description [4] <- brackets would describe the number of tasks

then we can use a subcommand like

sls [task] #list subtasks
sadd [task] #add subtasks
s... etc
ajmasia commented 4 years ago

Hi @dwaring87, I have been playing with the RTM API this weekend and it seems that the filter isSubstack:true does not work. Returns a {rev: 'hasCode'} object. Any news about this? I have opened a ticket for support. II think t would be an easy way to get subtasks.

Congratulations on the project, very open and dynamic 😄

beauraines commented 2 years ago

I was poking around with the rtm-api and rtm-cli today and it does not look like the RTM API returns a task's subtasks.

I dumped the rtm-api user.get('rtm.tasks.getList') response to the console and got the following for a task that has 4 sub-tasks. This may be a blocker to this very useful feature as RTM isn't returning that data. 😢

{
    "id": "6xxxxx6",
    "taskseries": [
        {
            "id": "42xxxxx33",
            "created": "2020-07-23T02:23:24Z",
            "modified": "2022-08-28T07:00:31Z",
            "name": "Take care of the pets",
            "source": "android",
            "url": "",
            "location_id": "",
            "rrule": {
                "every": "1",
                "$t": "FREQ=DAILY;INTERVAL=2;WKST=SU"
            },
            "tags": {
                "tag": [
                    "pets"
                ]
            },
            "participants": [],
            "notes": [],
            "task": [
                {
                    "id": "8xxxxxx86",
                    "due": "2022-08-28T07:00:00Z",
                    "has_due_time": "0",
                    "added": "2022-08-26T07:00:25Z",
                    "completed": "",
                    "deleted": "",
                    "priority": "1",
                    "postponed": "0",
                    "estimate": ""
                }
            ]
        }
    ]
}
dwaring87 commented 2 years ago

Unfortunately, until the RTM API adds subtasks into the API response, there's not much that can be done...