Skip to content
Discussion options

You must be logged in to vote

Indeed, this is not the finest of the Tasks documentation...

I've tested with your examples, and these are the easiest options:

If your Tasks query is PersonA.md then either of these will work:

filter by function task.outlinks.some(link => link.linksTo(query.file))
filter by function task.outlinks.some(link => link.destinationPath === query.file.path)

These are good because you don't need to remember to modify the query if you rename the file.

If your Tasks query is in a different file than where the required link goes to, you will have to specify the filename or path in the filter, for example:

filter by function task.outlinks.some(link => link.destinationPath.includes('PersonA'))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ridermansb
Comment options

Answer selected by Ridermansb
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