XJ/MJ are a direct swap. TJ/ZJ are a direct swap, but are low pinion (as are 00+ XJs). YJ would need extensive welding.
Also, I think the 2.8L v6 only had 5 speeds with it from the factory. But the 4-speed version of the trans is a direct swap, so it's possible that it was replaced at some point in time.