Former Will & Grace star Sean Hayes is working on a new comedy series - he will play an exasperated parent in a currently untitled sitcom for America's NBC network.