Find all related tiddlers for two colleagues

I create a tiddler for each colleague with the name as tiddler title, e.g. C1 and C2. Other tiddlers mentioned them by tags or links.

Now I plan to list of related colleagues for C1 which appear in the same tiddler (tag or links). The filter below is working

[tag[C1]tags[]] [tag[C1]links[]] [[C1]backlinks[]links[]]  +[tag[Colleague]!has[draft.of]sort[]]

In next step, I would like to list all common tiddlers which mention C1 and C2 in tag or link. The following filters can get the tiddlers with tag OR links.

[tag[C1]] [[C1]backlinks[]] :filter[tags[]match[C2]] 
[tag[C1]] [[C1]backlinks[]] :filter[links[]match[C2]] 

However, I cannot combine two filters into a single one.

[tag[C1]] [[C1]backlinks[]] :filter[tags[]match[C2]] [tag[C1]] [[C1]backlinks[]] :filter[links[]match[C2]] 

My question is how I combine two filters into a single one and are there other methods to achieve the same purpose?

I sort out with relink plugin

List all related colleagues

[[C1]relink:backreferences[]relink:references[]tag[Colleague]!has[draft.of]]  +[sort[]]

Find all common tiddlers

[[C1]relink:backreferences[]] :filter[relink:references[]match[C2]]
1 Like