Pull list of active projects using Shortcuts

I use a Daily note in Obsidian to plan my day.

What I’d like to do 2 things using Shortcuts if possible.

  1. Pull from OF a list of active projects with available tasks
  2. pull a list of tasks due today, but prepended with the Project name for each task (I have a lot of projects built from templates with matching task names)

I don’t think it’s possible. Does anyone know better?

You can try this code:

flattenedProjects
.filter(x => Project.Status.Active === x.status)
.filter(x => x.tasks.some(t => Task.Status.Available === t.taskStatus))
.map(x => x. name)
.join("\n")

inside this action

Screen Shot 2022-10-03 at 14.56.54

to obtain a linefeed delimited string containing your active projects that have at least one available task.

1 Like