Following up on answers to
an earlier question of mine, I've torn up and reinvented my daily to-do lists again — and run into a puzzling
new problem.
In a nutshell: I'm creating individual tiddlers for tasks I have to do for various clients/customers/my wife. I use a macro (<<todolist>>) to print out the running list of items on a per-client basis (e.g., <<todolist TheBoss>>). I use a button and faux checklist to check off items from these lists, tagging the tiddlers "√ done" and setting fields for completion date and completion time.
In my daily journal tiddler, I use calls to another macro (<<donelist>>) to record what I accomplished today. Each journal tiddler has a field named today that contains that day's date in YYYY-0MM-0DD format (e.g., 2016-01-14). The <<donelist>> macro uses <$list> to check for tasks whose completion date is equal to the today field of the current tiddler.
Or, at least, that's how it's supposed to work.
Here's what the <<donelist>> macro definition looks like:
\define donelist(client on:{{!!today}})
!$client$
<$list filter="[!has[draft.of]tag[$client$]tag[tasks]tag[√ done]task_completiondate[$on$]sort[task_completiontime]sort[task_completiondate]]">
<<donelist-listitem $client$>>
</$list>
\end
You'll notice I've set it up to accept an optional secondary parameter, on, because I sometimes want to call a list of things completed on a different date. If I push the current date through in the macro call (e.g., <<donelist TheBoss 2016-01-14>>), my list generates perfectly — but if I leave off that parameter (<<donelist TheBoss>>) and count on the today field to provide that value for the macro, the list fails to including anything. The string from today is captured, and I can print it out via the macro — but it seems to be failing in the filter.
$client$ works O.K. in the filter string, as do other parameters I pass into <$list> filters elsewhere. but maybe TiddlyWiki isn't parsing {{!!today}} in the filter definition? Can anyone confirm whether I'm barking up the right tree — and maybe suggest an alternative?