Context : I'm in a team where I'm not the highest grade. But on the technology we use I'm by far the most experienced (I know it because everyone on the team told me that my knowledge on the subject is huge). What usually happens is my manager gives interesting work to other people on the team and leave me work that nobody wants to do (maintenance of very old legacy code). What's bothering me is usually they screw up their tasks and are literally stuck with no ideas of what to do and asks me to come help them. While I try to resist helping them (because I have work to do myself) at one point they win and I find myself rewriting most of their code (did I say they screwed up ?). After that, manager and colleagues asks me to send them the code and take credits for my work. You could say that is normal but colleagues have promotions and pay raises bigger than me !
My questions: - Am I being being too emotional ? - I feel "trapped". What should I do next time this situation occurs ? - Is it acceptable to refuse to help and say : "you should have asked my help from the start now it's too late and I can't help you". - How to leverage this situation to get the pay raise I deserve ?