How do I rotate multiple objects independently?

I want to rotate all of these objecty by 45 °:

But if I rotate them, it ends up like this:

What I want instead, is this:

Wasn't much work to do it with 17 single objects but there must be an automatic way since it'd cost hours doing this one by one with 200+ objects.

Parents
No Data
Reply Children
No Data