Skip to content

Query to list all pending tasks from last two weeks #819

Answered by claremacrae
azeem-SC asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @azeem-SC I did a bit of experimenting and came up with this - the magic phrase is due after 15 days ago.

With this query:

```tasks
not done
due after 15 days ago
due before today
# or could use instead 'due before tomorrow' if you wanted to include tasks due today as well
sort by due
```

With these tasks:

- [ ] Test task due 15 days ago 📅 2022-06-07
- [ ] Test task due 14 days ago 📅 2022-06-08
- [ ] Test task due 13 days ago 📅 2022-06-09
- [ ] Test task due 12 days ago 📅 2022-06-10
- [ ] Test task due 01 days ago 📅 2022-06-21
- [ ] Test task today 📅 2022-06-22
- [ ] Test task tomorrow 📅 2022-06-23

I get these results (on 22 June):

Note how I used a range of tasks on different dates…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@azeem-SC
Comment options

@claremacrae
Comment options

@claremacrae
Comment options

@azeem-SC
Comment options

Answer selected by azeem-SC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants