Daniel J. Goor — American Writer born on April 28, 1975,

Daniel J. Goor is a writer, who has written for several comedy talk shows including The Daily Show, Last Call with Carson Daly and Late Night with Conan O'Brien. He also worked as a writer, producer, and director for NBC primetime series Parks and Recreation. He is currently serving as executive-producer and co-creator of the FOX primetime series Brooklyn Nine-Nine... (wikipedia)

Andy Samberg and Chelsea Peretti went to kindergarten together. For real.
One thing I would say is real cops have real gallows senses of humor and make incredibly funny and inappropriate jokes in the presence of dead people all the time.
If we were making a cop comedy about bad cops or cops who were comically bad at the jobs, then the jokes would be more hijinks and more like slapstick.
The number one rule of comedy acting is 'don't try to be funny.' Act as seriously as possible.
There were a bunch of things we really liked right off the bat about a police precinct. We loved how instantly relatable it was. We loved how little exposition was required to tell people who these guys were and what they were doing.