Dot Marie Jones Dot Marie Jones

Glee's Dot Marie Jones is going to jail — and Chelsea Handler is going with her.

Jones will make a guest-appearance in the NBC comedy pilot based on Handler's book, Are You There, Vodka? It's Me, Chelsea, has learned.

Check out photos of Jones on Glee

After landing in jail for a D.U.I., Chelsea (Laura Prepon) meets a tough lesbian bully (Jones), whom she befriends in a surprising way. Jones' part was originally written with Roseanne Barr in mind.

The 47-year-old actress, who plays football Coach Beiste on Fox's Glee, previously appeared on Married... with Children, Nip/Tuck, Desperate Housewives and Prison Break.

Stay up-to-date on the latest pilot castings here

Executive-produced by Handler, who will play her own older sister in the pilot, Vodka also stars Mark Povinelli, Jo Koy, Natalie Morales, Angela Laketa Moore, Lenny Clarke and Lauren Lapkus.