Creating a static task report

Things I have tried

When using a tasks block the data displayed is dynamic. Each time I read the page it shows up to date data, which is useful in many cases but I’d like to have daily static reports

```tasks
```

What I’m trying to do

In my daily note I’d like to get a snapshot of tasks as they exist today (incomplete vs complete, etc) as a static report. The goal is to be able to look back through the daily notes history and see a snapshot of the state of tasks on that date.

This solution here seems like a good workaround. It relies on dataviewjs to collect tasks and copy them to the clipboard.