I had the same issue. Had 2 fuel injectors bad and the Fuel Injection Computer (FICM) was bad. These trucks are based so heavily on computers, it affected how the transmission shifted. Once mine was warm transmission shifted fine. Hope this helps, at least a place to start.