Dataview: Trying to Display Files from Longform Plugin

What I’m trying to do

I’m trying to get my Longform files to display in a dataview query table. My query is as follows:

table 
  start as "Started", 
  completed as "Completed", 
  status as "Status", 
  wordcount as "Words", 
  progress as "Progress", 
  notes as "Notes"
from "06 WRITING/6.1 A Fighting Chance/A Fighting Chance"
where status != "Complete" 
where contains(tags, "writing") and contains(tags, "AFC")
where contains(longform, "A Fighting Chance")
sort start asc

The YAML front mater for my Longform files is as follows:


title: Chapter 1, Scene 1
longform: true
longform.project: A Fighting Chance
status: Draft
start:
completed:
wordcount:
progress:
notes:
tags:

  • Writing
  • AFC

Things I have tried

I’ve ensured Dataview plugin settings are correct (they are), I’ve tried forcing a metadata refresh, and I’ve also tried running a test query to ensure that Dataview is picking up files. Nothing seems to be working and I’m not sure how to get my Longform files to display.

Your query sets longform = true, but you test whether it’s A Fighting Chance, which you’ve stored in longform.project. And I’m not sure if the latter is actually legal syntax…

Your tag is Writing, but you check against writing. You need to use icontains() if case doesn’t matter.