rtm-cli icon indicating copy to clipboard operation
rtm-cli copied to clipboard

[Feature Request] - Manage subtask

Open codezninja opened this issue 6 years ago • 4 comments

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

codezninja avatar Mar 20 '18 17:03 codezninja

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?

dwaring87 avatar Apr 24 '18 01:04 dwaring87

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

ghost avatar Apr 24 '18 02:04 ghost

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 😄

ajmasia avatar Apr 12 '20 18:04 ajmasia

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": ""
                }
            ]
        }
    ]
}

beauraines avatar Aug 28 '22 19:08 beauraines

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

dwaring87 avatar Sep 24 '22 19:09 dwaring87