Rinse the jasmine rice under cold water until the water runs clear to remove excess starch.
In the Instant Pot, combine the rinsed jasmine rice, coconut milk, pineapple juice, diced pineapple, lime juice, lime zest, salt, and sugar (if using).
Stir the mixture gently to combine all ingredients, ensuring the rice is evenly distributed in the liquid.
Close the lid of the Instant Pot and ensure the vent is set to the sealing position.
Select the 'Manual' or 'Pressure Cook' function and set the timer for 6 minutes at high pressure.
Once the cooking cycle is complete, allow for a natural pressure release for about 10 minutes. After that, manually release any remaining pressure.
Carefully open the lid, fluff the rice with a fork, and let it sit for a few minutes.
Serve the rice in a dish, garnished with chopped cilantro.
For added flavor, consider toasting the jasmine rice in the Instant Pot on the sauté setting for 2-3 minutes before adding the liquids.
Feel free to add shredded coconut or chopped nuts for added texture.