Gong-ans developed during the Tang Dynasty (618-907) from the recorded sayings collections of Chán-masters, which quoted many stories of "a famous past Chán figure's encounter with disciples or other interlocutors and then offering his own comment on it".
Those stories came to be known as gongan, "public cases".