Skip to content

$link property of tasks not working as expected #146

@raphaelquast

Description

@raphaelquast

I have the following simple query to list tasks with a specific tag (which works just fine).

However, I would have expected that the task.$link property provides a link to the block where the task was defined.
Instead, all I get is an empty column.

In case this is intended (and not a bug), can anyone please advise me how I can turn task.$text into a clickable link that brings me to the location where the task has been defined? Thanks!

const COLUMNS = [
    { id: "text", value: (task) => task.$text },
    { id: "tags", value: (task) => task.$tags },
    { id: "link", value: task => task.$link }
];

return function View() {

    const tasks = dc.useQuery("@task and (#task or #meeting) and !$completed and scheduled");
    const sortedTasks = dc.useArray(tasks, (array) => array.sort(task => task.value("scheduled")));

    return <dc.Table columns={COLUMNS} rows={sortedTasks } />;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions