Term for behaviour of transfering personal problems to other people and trying to solve them there? I think my question is a little tricky to express, but I have observed this kind of behaviour pattern many times, and would like to know if it is coined in cognitive science.
As an example, consider an employer who has problems with time management - he is often late and even misses appointments.  None of his employees have this kind of problem - his team is well functioning.  However, the employer forces his team to use time tracking systems.
Another example: A person with a drinking problem tries to manipulate her friends and family to completely avoid bars, parties, and clubs, because these are the places where people tend to abuse alcohol.
The pattern I see is that a person is unable to deal with a particular personal problem, and instead obsessively tries to make sure that others don't get anywhere near that same problem.  The measures to achieve this protection are often not rational and exaggerated.
I understand that at a healthy level, the described behaviour can be beneficial.  For example if I experience a very painful situation and have an opportunity to teach others how they could avoid that experience, then I would vigorously do so.
However, I wonder if there is a term that describes when this behaviour is irrationally applied.
There are a couple of defence mechanisms that may fit the bill.  Keep in mind that these defence mechanisms typically involve an unconscious denial of the problem - ie, they apply to people who don't admit to the problem in themselves.
Projection:

... a theory in psychology in which humans defend themselves against
unpleasant impulses by denying their existence in themselves, while
attributing them to others. For example, a person who is rude may
constantly accuse other people of being rude.

Someone with a time management problem may constantly focus on and accuse others of being late, while someone with a drinking problem may imply that others around them have this problem rather than themselves.
Reaction formation:

... a defensive process (defense mechanism) in which emotions and
impulses which are anxiety-producing or perceived to be unacceptable
are mastered by exaggeration (hypertrophy) of the directly opposing
tendency.

Someone with a time management problem may actively promote the importance of punctuality and time tracking, while someone with a drinking problem may act as a spokesperson for the virtues of abstinence.
Note that the construct of defence mechanisms in general is outdated and has largely been superseded by cognitive dissonance theory.