Alert only on specific Terms


I have a terms aggregation with 2 metrics, where I want to alert only on terms if metric1 > metric2
So, basically it involves iterating over the array ctx.results[0].hits.hits and checking the condition for each term.
When creating Trigger, I can iterate through this array and return true if atleast 1 such term exists.
But, when sending alert (Action), I only want to list terms which have met the trigger condition and not all the terms. I see that mustache templates can be used inside Action, but how can I filter the terms that met condition?

I see my situation is little bit similar to this post which says there is no way to do it using mustache. But, just checking if anything changed since then or if there is any alternate approach I could take.