Filter only tiddlers with a tag, where other tiddlers are tagged with their title

99 views
Skip to first unread message

Bastian

unread,
Apr 28, 2021, 10:03:31 AM4/28/21
to TiddlyWiki
Hi all,

I'm trying to create a project overview with projects that have open tasks.
The current system has tiddlers that are tagged "project" which defines them as a project.
A task is another tiddler, that has the projects title as a tag and additionally the tag "task" assigned to them.

I'd like to achieve an overview with a list of only the projects, that have open tasks, but I can't get it to work.
This lists me all open projects:

[tag[project]!status[done]!status[REJECTED]!status[ONHOLD]sort[]]

and this lists me all open tasks under the list of the projects:

[!has[draft.of]tag[task]tag<currentTiddler>!status[done]!status[REJECTED]] [enlist{!!aliases}tagging[]tag[task]!status[done]!status[REJECTED]]

What I can't get to work is that I only want to be list the projects that have open tasks, and not every project.

I tried to filter for tiddlers with the tag task and the currentTiddler in the tag but that just gave me an empty result.

Can someone point me in the right direction what the first filter expression would have to look like?

Charlie Veniot

unread,
Apr 28, 2021, 10:54:06 AM4/28/21
to TiddlyWiki
G'day,

Silly question:  is the status field on project tiddlers, or is the status field on task tiddlers?

Message has been deleted

si

unread,
Apr 28, 2021, 3:11:19 PM4/28/21
to TiddlyWiki
Try this:

[tag[task]!field:status[done]tags[]tag[project]]

I'm assuming that you are using a "status" field to indicate that a task is complete.

Bastian

unread,
Apr 29, 2021, 3:19:50 AM4/29/21
to TiddlyWiki
The status field is on both of them as I use to keep track of the projects status and tasks status with the same set. Works for me, it's not that detailed, rather more like "open, in work, done" and a few extra status likerejected or onhold.

Bastian

unread,
Apr 29, 2021, 4:45:47 AM4/29/21
to TiddlyWiki
hmm, nah, doesn't work (zero results).
I'm going to fiddle around with your suggestions a little, maybe I can get it to work.
I already got a list of all projects (first filter expression from my inital post) with their tasks underneath (second filter expression).
Now what I would need to do is to adapt the first filter expression so it only selects projects that have open tasks.

So as far as I understood your filter expression it filters all tasks with tag[task], excludes done tasks with !field:status[done], which is correct and then the magic happens in tags[]tag[project], correct?
I'm currently just not sure on how I would have to combin it, to filter only projects with open tasks, as the filter alone isn't giving me any results yet :/


si

unread,
Apr 29, 2021, 6:23:49 AM4/29/21
to TiddlyWiki
I just did a quick test and it seemed to work as I expected:

tag[task] - lists all tasks
!field:status[done] - filters that list down to only open tasks
tags[] - lists all the tags of those open tasks
tag[projects] - identifies which of those tags represent projects

That should give you all projects that have open tasks. Maybe there is a capitalization error, e.g. "done" vs "Done"?

Bastian

unread,
Apr 29, 2021, 8:47:25 AM4/29/21
to TiddlyWiki
Dang! Yes! I had a typo in there, thanks a lot for your help! Works just as intended, what a wonderful overview :-)

Charlie Veniot

unread,
Apr 29, 2021, 9:38:32 AM4/29/21
to TiddlyWiki
Sometimes, a solution just needs some "sounding boards", and I always find that a very cool thing.

Good job!
Reply all
Reply to author
Forward
0 new messages