Toast the cardamom pods in a dry skillet. Let them cool for a minute, then remove the seeds from the pods. Grind the seeds in a mortar and pestle or a spice grinder .
Place the chicken thighs, shallots, garlic, cinnamon sticks, apricots and the thyme in a large casserole dish. Add the olive oil, and season with salt and pepper and 1/2 of the cardamom and mix well.
Place in the oven with the chicken thighs skin side up, bake until the chicken is golden brown and the shallots are soft, about 30 minutes.
Increase the oven temperature to 230°C.
Remove from the oven. Transfer the chicken thighs to a plate and set aside.Rinse the rice 2-3 times in cold water to remove any excess starch. Add the rice, to the baking dish along with the juice and zest of a lemon. Season with salt and pepper, the allspice and remaining cardamom.Roughly chop the tender stems of the fresh coriander and add to the rice, reserving the leaves for garnish.Gently mix, until the rice is evenly coated with the spices and olive oil from the baking dish.Bring the water to a boil and pour over the rice.
Return the chicken thighs to the baking dish, laying them skin side up on top of the rice.Seal the baking dish tightly with aluminum foil and bake in the oven for 20-25 minutes, until the rice is cooked. Remove from the oven and let rest, covered for 5-10 minutes.