As a software engineer have been assigned to a project of five member team. We all have our individual roles to a particular components. Sometime an issue arises in other team members component and I have tried to involve solving the problem. My manager strictly insults me for this behavior of mine. So I stopped involving in solving issue other than what is assigned to me.
Now that our current manager is promoted, our team been assigned to new manager. New manager reports to our old-manager. The current manager insults us for just sticking with our assigned work. I feel confused.
How should the behavior be as a team member. Should I just work on assigned work ? Or should volunteer on involving in other component as well ? Or should I consult manager asking I have more time and can contribute more ?