This an excellent guide to writing one type of joke which is directly related to creativity. This technique can be applied to creatively solving problems in a creative way. WARNING it is not short.
I did take a course in comedy writing which also used this technique. In the class I teach on innovation and creativity in industry I give the students an exercise to write a joke and present it in class. I give them the subject matter and they do it in groups in the class.