FET and Task Package

8 views
Skip to first unread message

c.skye

unread,
May 29, 2008, 2:20:28 PM5/29/08
to TiddlyWiki
Been playing a bit with the Tasks package from TiddlyTools.....and
want to get some simple reports working.

Using the Tasks Templates a tiddler tagged as task gets a few extra
parameters added in, such as "assigned", "status" and "urgent" - for
example
<div title="test3" modifier="skye" created="200805290333"
modified="200805290334" tags="task" changecount="3" urgent="false"
assigned="skye" status="not started"> is the start of the tiddler
description in the stored file.

I am imagining that forEachTiddlerPlugin could help....only when I
search (where cluase) on tiddler.assigned it obviously bombs out as
many tiddlers dont have an assigned value.

Can I have a FET that looks for tiddler.tag.contains("task") AND
tiddler.assign.contains("skye") - its effectively a nested search
condition.....can I do that, in FET? Or is there another way?

Skye

wolfgang

unread,
May 29, 2008, 5:15:52 PM5/29/08
to TiddlyWiki
Hi skye,

With the help of others here I once created a FET call, which looks
for a number of tags AND displays the content of a custom field like
'assigned' - but which I named 'theme' instead:

<<forEachTiddler where
'tiddler.tags.containsAny(["team","regional","stationary","large"])'
sortBy 'tiddler.title' descending
write
'(index < 40) ? "|"+(index+1)+"|[["+tiddler.title+"]]|"+tiddler.tags
+"|"+tiddler.text.length+"|"+store.getValue(tiddler,"theme")+"|\n" :
""'
begin '"|!#|!Teams|!Tags|!Byte|!Themes|\n"'
end 'count+" Tiddlers found\n"'
none '"No Tiddlers found\n"'>>

So I reckon a nested search as you describe should be possible somehow
(with some trial and fail).

Regards,

W.

Ken Girard

unread,
May 30, 2008, 12:31:27 AM5/30/08
to TiddlyWiki
Take a look at http://no-sin.com/wiki/WorkTracker.html for examples of
ways to use ForEachTiddler and custom fields in reports and searches.
Also use http://tw.lewcid.org/#TableSortingPlugin so you can sort
things out a little better.

Ken Girard
Reply all
Reply to author
Forward
0 new messages