It's not automatic, you still need to apply and USCIS still has arbitrary discretion. The I-485 can take several months and that's assuming your paperwork is perfect and the agent likes you.