"When is a jig anything but up?"

When it's down. A jig is apparatus that holds material and guides tools while working. The jig is down when you're engaged in working the material. It's up when you aren't doing that anymore and remove the jig.

The slang phrase "the jig is up" comes from that. -- meaning that the "work" has been interrupted and so is no longer being done.