Pvp defence wins count towards daily task?

I.e I have a task to win matches with yellow manna troops, if I put a yellow team in defence, would any wins count towards this?

Short answer: no.

It has to be a battle that you actually play (quest, challenge, explore or PVP invade).