Creating a team and setting friendlyfire to false will not prevent a piglin from attacking a wither skeleton when both are part of said team, yet the wither skeleton will not attack the piglin.
The bug can easily be reproduced by creating a team, setting friendly fire to false and summoning a piglin and a wither skeleton that are on the same team nexto to one another.
Thank you for your report!
We're already tracking this issue at MC-172304, so we will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki