todoist icon indicating copy to clipboard operation
todoist copied to clipboard

When adding a new task, can a due date be set?

Open buckmaxwell opened this issue 5 years ago • 3 comments

I'm sorry, perhaps this is obvious. Is there a way to set a due date on tasks added through the cli?

buckmaxwell avatar Mar 21 '19 19:03 buckmaxwell

This is unclear for me, too. If I just write "next week", it doesn't seem to get parsed to a date

hrmJ avatar Aug 02 '19 12:08 hrmJ

Yes, use todoist <command> help to see the flags (in this case, todoist add help).

In short: todoist add "This is a test" -N "Personal" -d "next week" -L "test" will add a task in the project named "Personal" that's due next Monday and has a label "test".

So, for your specific question, instead of doing todoist add "This is a test tomorrow", do todoist add "This is a test" -d "tomorrow".

inputsh avatar Oct 02 '19 07:10 inputsh

thanks!

buckmaxwell avatar Oct 02 '19 13:10 buckmaxwell