Never tried this, but here's an italian version of rice pie
It has both concepts...either cook the rice with everything...or at the end of the recipe, he suggests cooking the rice al dente, then adding it to finish off the dish.
I also think you'd have more moisture with grated potatoes, so you may need to adjust for the lack of that.