A task list of tasks linked to the currently selected page?

I want to make a task list of all the tasks that contain links to the currently selected page. I can’t work out how to do it.

```dataview
task where contains(outlinks, this.file.link)
```

This is a dataview go at doing it. It doesn’t work. It includes the tasks that are in the file containing this dataview, but when I click into another file it doesn’t update. I thought that this.file was supposed to be dynamic - it is in bases.

Translating that into tasks doesn’t help:

```tasks
filter by function contains(outlinks, this.file.link)
```

I get ‘contains is not defined’.

Has anyone got this working?

What I’m aiming for is a dashboard that shows both the open tasks within a page, and those that are linked to the page, in order of urgency.

Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.