X type jaguar diesel 2.0 hard to start when engine as warmed up

Hi Guys, just brought a x type jag 2.0 diesel 06 reg, starts from cold but when the engine is warmed up it struggles to start then when it does start for a few seconds it runs lumpy any help would be great, thanks keith